EchoPoint
1.0

echopoint.tabbedpane
Interface TabImageRenderer

All Known Implementing Classes:
DefaultTabImageRenderer

public interface TabImageRenderer

TabImageRenderer is an interface for producing "tab images" within a TabbedPane.


Method Summary
 nextapp.echo.Color getImageBorderColor()
          This is called the indicate the color of any border around the image.
 int getImageBorderWidth()
          This is called the indicate the width of any border around the image.
 nextapp.echo.ImageReference getLeadInImage(TabbedPane tp)
          This returns a "lead in" image that will be place to the left of all tab images.
 nextapp.echo.ImageReference getLeadOutImage(TabbedPane tp)
          This returns a "lead out" image that will be place to the right of all tab images.
 nextapp.echo.ImageReference getTabImage(TabbedPane tp, int tabIndex, java.lang.String tabText, boolean isActive)
          This returns an ImageReference to be used as the tab's representation.
 

Method Detail

getLeadInImage

public nextapp.echo.ImageReference getLeadInImage(TabbedPane tp)
This returns a "lead in" image that will be place to the left of all tab images. If there is no lead in image, then this method should return null.

Parameters:
tp - the TabbedPane in question
Returns:
the lead in image or null if there isnt one

getLeadOutImage

public nextapp.echo.ImageReference getLeadOutImage(TabbedPane tp)
This returns a "lead out" image that will be place to the right of all tab images. If there is no lead out image, then this method should return null.

Parameters:
tp - the TabbedPane in question
Returns:
the lead out image or null if there isnt one

getTabImage

public nextapp.echo.ImageReference getTabImage(TabbedPane tp,
                                               int tabIndex,
                                               java.lang.String tabText,
                                               boolean isActive)
This returns an ImageReference to be used as the tab's representation. This MUST NOT be null since the TabbedPane requires in image if a TabImageRenderer is in use.

Parameters:
tp - the TabbedPane in question
tabIndex - - the index of the current tab
isActive - - true if the tab is active
Returns:
the image reference to use as the tab image

getImageBorderWidth

public int getImageBorderWidth()
This is called the indicate the width of any border around the image. This is used by the TabbedPane to decide whether to place a 3 sided border under the provided images.

Returns:
the width of any border around the images. Can be zero!

getImageBorderColor

public nextapp.echo.Color getImageBorderColor()
This is called the indicate the color of any border around the image. This is used by the TabbedPane to decide whether to place a 3 sided border under the provided images.

Returns:
the color of any border around the images. Can be null!

EchoPoint
1.0