| java.lang.Object org.wings.border.SAbstractBorder org.wings.border.STitledBorder
STitledBorder | public class STitledBorder extends SAbstractBorder (Code) | | Adds a border with a title to a component.
|
Field Summary | |
final public static int | ABOVE_BOTTOM Position the title above the border's bottom line. | final public static int | ABOVE_TOP Position the title above the border's top line. | final public static int | BELOW_BOTTOM Position the title below the border's bottom line. | final public static int | BELOW_TOP Position the title below the border's top line. | final public static int | BOTTOM Position the title in the middle of the border's bottom line. | final public static int | CENTER Position title text in the center of the border line. | final public static int | DEFAULT_JUSTIFICATION Use the default justification for the title text. | final public static int | DEFAULT_POSITION Use the default vertical orientation for the title text. | final protected static int | EDGE_SPACING | final public static int | LEADING Position title text at the left side of the border line
for left to right orientation, at the right side of the
border line for right to left orientation. | final public static int | LEFT Position title text at the left side of the border line. | final public static int | RIGHT Position title text at the right side of the border line. | final public static Selector | SELECTOR_FIELDSET | final public static Selector | SELECTOR_LEGEND | final protected static int | TEXT_INSET_H | final protected static int | TEXT_SPACING | final public static int | TOP Position the title in the middle of the border's top line. | final public static int | TRAILING Position title text at the right side of the border line
for left to right orientation, at the left side of the
border line for right to left orientation. | protected Map | dynamicStyles Map of
Selector to CSS
Style s currently assigned to this component. |
Constructor Summary | |
public | STitledBorder(SBorder border) Constructor for STitledBorder. | public | STitledBorder(String title) Constructor for STitledBorder. | public | STitledBorder(SBorder border, String title) Constructor for STitledBorder. | public | STitledBorder(SBorder border, String title, int titleJustification, int titlePosition) Constructor for STitledBorder
Creates a STitledBorder instance with the specified border, title, title-justification, and title-position. | public | STitledBorder(SBorder border, String title, int titleJustification, int titlePosition, SFont titleFont) Constructor for STitledBorder
Creates a STitledBorder instance with the specified border, title, title-justification, title-position, and title-font. | public | STitledBorder(SBorder border, String title, int titleJustification, int titlePosition, SFont titleFont, Color titleColor) Constructor for STitledBorder
Creates a TitledBorder instance with the specified border, title, title-justification, title-position, title-font, and title-color. |
ABOVE_BOTTOM | final public static int ABOVE_BOTTOM(Code) | | Position the title above the border's bottom line.
|
ABOVE_TOP | final public static int ABOVE_TOP(Code) | | Position the title above the border's top line.
|
BELOW_BOTTOM | final public static int BELOW_BOTTOM(Code) | | Position the title below the border's bottom line.
|
BELOW_TOP | final public static int BELOW_TOP(Code) | | Position the title below the border's top line.
|
BOTTOM | final public static int BOTTOM(Code) | | Position the title in the middle of the border's bottom line.
|
CENTER | final public static int CENTER(Code) | | Position title text in the center of the border line.
|
DEFAULT_JUSTIFICATION | final public static int DEFAULT_JUSTIFICATION(Code) | | Use the default justification for the title text.
|
DEFAULT_POSITION | final public static int DEFAULT_POSITION(Code) | | Use the default vertical orientation for the title text.
|
EDGE_SPACING | final protected static int EDGE_SPACING(Code) | | |
LEADING | final public static int LEADING(Code) | | Position title text at the left side of the border line
for left to right orientation, at the right side of the
border line for right to left orientation.
|
LEFT | final public static int LEFT(Code) | | Position title text at the left side of the border line.
|
RIGHT | final public static int RIGHT(Code) | | Position title text at the right side of the border line.
|
SELECTOR_FIELDSET | final public static Selector SELECTOR_FIELDSET(Code) | | Two different selectoren, one for fieldset and one for legend
|
TEXT_INSET_H | final protected static int TEXT_INSET_H(Code) | | |
TEXT_SPACING | final protected static int TEXT_SPACING(Code) | | |
TOP | final public static int TOP(Code) | | Position the title in the middle of the border's top line.
|
TRAILING | final public static int TRAILING(Code) | | Position title text at the right side of the border line
for left to right orientation, at the left side of the
border line for right to left orientation.
|
dynamicStyles | protected Map dynamicStyles(Code) | | Map of
Selector to CSS
Style s currently assigned to this component.
|
STitledBorder | public STitledBorder(SBorder border)(Code) | | Constructor for STitledBorder.
|
STitledBorder | public STitledBorder(String title)(Code) | | Constructor for STitledBorder. Default border
type is
SEtchedBorder , thickness 2
|
STitledBorder | public STitledBorder(SBorder border, String title)(Code) | | Constructor for STitledBorder.
Parameters: border - the border to use Parameters: title - the title to display |
STitledBorder | public STitledBorder(SBorder border, String title, int titleJustification, int titlePosition)(Code) | | Constructor for STitledBorder
Creates a STitledBorder instance with the specified border, title, title-justification, and title-position.
Parameters: border - the border to use Parameters: title - the title to display Parameters: titleJustification - (not used) Parameters: titlePosition - (not used) |
STitledBorder | public STitledBorder(SBorder border, String title, int titleJustification, int titlePosition, SFont titleFont)(Code) | | Constructor for STitledBorder
Creates a STitledBorder instance with the specified border, title, title-justification, title-position, and title-font.
Parameters: border - the border to use Parameters: title - the title to display Parameters: titleJustification - Parameters: titlePosition - (not used) Parameters: titleFont - the font to used |
STitledBorder | public STitledBorder(SBorder border, String title, int titleJustification, int titlePosition, SFont titleFont, Color titleColor)(Code) | | Constructor for STitledBorder
Creates a TitledBorder instance with the specified border, title, title-justification, title-position, title-font, and title-color.
Parameters: border - the border to use Parameters: title - the title to display Parameters: titleJustification - Parameters: titlePosition - (not used) Parameters: titleFont - the font to use Parameters: titleColor - the color to use |
getBorder | public SBorder getBorder()(Code) | | Gets the border.
Returns a SBorder |
getTitle | public String getTitle()(Code) | | Gets the title.
Returns a String |
getTitleColor | public Color getTitleColor()(Code) | | Returns the title-color of the titled border.
|
getTitleFont | public SFont getTitleFont()(Code) | | Returns the title-font of the titled border.
|
getTitleJustification | public int getTitleJustification()(Code) | | Returns the title-justification of the titled border.
|
isDifferent | protected static boolean isDifferent(Object oldObject, Object newObject)(Code) | | use this method for changing a variable. if a new value is different
from the old value set the new one and notify e.g. the reloadmanager...
|
setBorder | public void setBorder(SBorder border)(Code) | | Sets the border.
Parameters: border - The border to set |
setTitle | public void setTitle(String title)(Code) | | Sets the title.
Parameters: title - The title to set |
setTitleColor | public void setTitleColor(Color titleColor)(Code) | | Sets the title-color of the titled border.
Parameters: titleColor - - the color for the border title |
setTitleFont | public void setTitleFont(SFont titleFont)(Code) | | Sets the title-font of the titled border.
Parameters: titleFont - - the font for the border title |
setTitleJustification | public void setTitleJustification(int titleJustification)(Code) | | Sets the title-justification of the titled border.
titleJustification, Default, Center, Right, Left |
|
|