|
EchoPoint 2.1.0rc5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo2.app.Component
echopointng.ComponentEx
echopointng.AbleComponent
echopointng.PopUp
public class PopUp
PopUp is a component that 'pops up' a floating box containing
another component when its toggle image is clicked or moused over.
A PopUp has three main parts.
| Fields inherited from class echopointng.ComponentEx |
|---|
PROPERTY_HIDDEN |
| Fields inherited from interface echopointng.able.Expandable |
|---|
EXPANDED_CHANGED_PROPERTY, PROPERTY_EXPANSION_GROUP, PROPERTY_EXPANSION_MODEL |
| Fields inherited from interface echopointng.able.AccessKeyable |
|---|
PROPERTY_ACCESS_KEY |
| Fields inherited from interface echopointng.able.Borderable |
|---|
PROPERTY_BORDER |
| Fields inherited from interface echopointng.able.MouseCursorable |
|---|
CURSOR_AUTO, CURSOR_CROSSHAIR, CURSOR_CUSTOM_URI, CURSOR_DEFAULT, CURSOR_E_RESIZE, CURSOR_HELP, CURSOR_MOVE, CURSOR_N_RESIZE, CURSOR_NE_RESIZE, CURSOR_NW_RESIZE, CURSOR_POINTER, CURSOR_S_RESIZE, CURSOR_SE_RESIZE, CURSOR_SW_RESIZE, CURSOR_TEXT, CURSOR_W_RESIZE, CURSOR_WAIT, PROPERTY_MOUSE_CURSOR, PROPERTY_MOUSE_CURSOR_URI |
| Fields inherited from interface echopointng.able.Insetable |
|---|
DEFAULT_INSETS, DEFAULT_OUTSETS, PROPERTY_INSETS, PROPERTY_OUTSETS |
| Fields inherited from interface echopointng.able.Widthable |
|---|
PROPERTY_WIDTH |
| Fields inherited from interface echopointng.able.Heightable |
|---|
PROPERTY_HEIGHT |
| Fields inherited from interface echopointng.able.ToolTipable |
|---|
PROPERTY_TOOL_TIP_TEXT |
| Constructor Summary | |
|---|---|
PopUp()
Constructs a PopUp with no target and no popup component
in place |
|
PopUp(Component targetComponent,
Component popUpComponent)
Constructs a PopUp with the specified target and popup
component in place. |
|
| Method Summary | |
|---|---|
ExpansionGroup |
getExpansionGroup()
|
ExpansionModel |
getExpansionModel()
|
Component |
getPopUp()
|
Alignment |
getPopUpAlignment()
|
boolean |
getPopUpAlwaysOnTop()
|
Color |
getPopUpBackground()
|
Border |
getPopUpBorder()
|
Insets |
getPopUpInsets()
|
int |
getPopUpLeftOffset()
|
Insets |
getPopUpOutsets()
|
int |
getPopUpTopOffset()
|
Color |
getRolloverBackground()
Returns the background color of the popup when the mouse cursor is inside its bounds. |
Border |
getRolloverBorder()
Returns the border displayed around the popup when the mouse cursor is inside its bounds. |
Component |
getTarget()
|
Color |
getTargetBackground()
Returns the background color of the target area. |
Border |
getTargetBorder()
Returns the border displayed around the target area. |
Insets |
getTargetInsets()
Returns the insets displayed around the target area. |
Color |
getTargetRolloverBackground()
Returns the background color of the target area when the mouse cursor is inside its bounds. |
Border |
getTargetRolloverBorder()
Returns the border displayed around the target area when the mouse cursor is inside its bounds. |
Color |
getToggleBackground()
Returns the background color of the toggle area. |
Border |
getToggleBorder()
Returns the border displayed around the toggle area. |
ImageReference |
getToggleIcon()
Returns the icon of the toggle. |
Insets |
getToggleInsets()
Returns the Insets of the toggle area. |
Color |
getTogglePressedBackground()
Returns the background color of the toggle when the toggle is pressed. |
Border |
getTogglePressedBorder()
Returns the border displayed around the toggle when the toggle is pressed. |
ImageReference |
getTogglePressedIcon()
Returns the icon of the toggle that is displayed when the toggle is pressed. |
Color |
getToggleRolloverBackground()
Returns the background color of the toggle when the mouse cursor is inside its bounds. |
Border |
getToggleRolloverBorder()
Returns the border displayed around the toggle when the mouse cursor is inside its bounds. |
ImageReference |
getToggleRolloverIcon()
Returns the icon of the toggle that is displayed when the mouse cursor is inside its bounds. |
boolean |
isExpanded()
|
boolean |
isPopUpNextToToggle()
|
boolean |
isPopUpOnRollover()
|
boolean |
isRolloverEnabled()
Determines if rollover effects are enabled. |
boolean |
isTogglePressedEnabled()
Determines if pressed effects are enabled. |
void |
processInput(String inputName,
Object inputValue)
|
void |
setExpanded(boolean isExpanded)
Sets whether the Expandable is expanded or not |
void |
setExpansionGroup(ExpansionGroup newExpansionGroup)
Sets the ExpansionGroup used by the Expandable. |
void |
setExpansionModel(ExpansionModel newValue)
Sets the ExpansionModel model used by the Expandable. |
void |
setFocusComponent(Component component)
Sets the component that needs to get the focus when the popup is asked to focus |
void |
setFocusOnExpand(boolean showFocus)
Allows you to let the popup request focus when it is shown/expanded |
void |
setPopUp(Component newValue)
Sets the Component that is shown is the popup box when the toggle is pressed |
void |
setPopUpAlignment(Alignment newValue)
Sets the alignment of the box around the popup component, with respect to either the target component or the toggle image. |
void |
setPopUpAlwaysOnTop(boolean newValue)
The popUpAlwaysOnTop property can be used control how the popup box is drawn. |
void |
setPopUpBackground(Color newValue)
Sets the background color of the box around the popup component. |
void |
setPopUpBorder(Border newValue)
Sets the border of the box around the popup component. |
void |
setPopUpInsets(Insets newValue)
Sets the insets inside the box around the popup component. |
void |
setPopUpLeftOffset(int newValue)
Sets the left offset the box around the popup component. |
void |
setPopUpNextToToggle(boolean newValue)
Sets to true if the popup box is aligned next to the toggle image or false if its aligned next to the target component. |
void |
setPopUpOnRollover(boolean newValue)
Controls whether th popup box is shown when the mouse rolls over the toggle or false if a click is required to show the popup box. |
void |
setPopUpOutsets(Insets newValue)
Sets the outer spacing of the box around the popup component. |
void |
setPopUpTopOffset(int newValue)
Sets the top offset of the box around the popup component. |
void |
setRolloverBackground(Color newValue)
Sets the background color of the popup when the mouse cursor is inside its bounds. |
void |
setRolloverBorder(Border newValue)
Sets the border displayed around the popup when the mouse cursor is inside its bounds. |
void |
setRolloverEnabled(boolean newValue)
Sets whether rollover effects are enabled when the mouse cursor is inside the popup's bounds. |
void |
setTarget(Component newValue)
Sets the component that is shown beside the toggle |
void |
setTargetBackground(Color newValue)
Sets the background color of the target area |
void |
setTargetBorder(Border newValue)
Sets the border displayed around the target area. |
void |
setTargetInsets(Insets newValue)
Sets the Insets displayed around the target area. |
void |
setTargetRolloverBackground(Color newValue)
Sets the background color of the target area when the mouse cursor is inside its bounds. |
void |
setTargetRolloverBorder(Border newValue)
Sets the border displayed around the target area when the mouse cursor is inside its bounds. |
void |
setToggleBackground(Color newValue)
Sets the background color of the toggle |
void |
setToggleBorder(Border newValue)
Sets the border displayed around the toggle. |
void |
setToggleIcon(ImageReference newValue)
Sets the icon of the toggle. |
void |
setToggleInsets(Insets newValue)
Sets the insets of the toggle area. |
void |
setTogglePressedBackground(Color newValue)
Sets the background color of the toggle when the toggle is pressed. |
void |
setTogglePressedBorder(Border newValue)
Sets the border displayed around the toggle when the toggle is pressed. |
void |
setTogglePressedEnabled(boolean newValue)
Sets whether pressed effects are enabled when the toggle is pressed. |
void |
setTogglePressedIcon(ImageReference newValue)
Sets the icon of the toggle that is displayed when the toggle is pressed. |
void |
setToggleRolloverBackground(Color newValue)
Sets the background color of the toggle when the mouse cursor is inside its bounds. |
void |
setToggleRolloverBorder(Border newValue)
Sets the border displayed around the toggle when the mouse cursor is inside its bounds. |
void |
setToggleRolloverIcon(ImageReference newValue)
Sets the icon of the toggle that is displayed when the mouse cursor is inside its bounds. |
void |
validate()
|
| Methods inherited from class echopointng.AbleComponent |
|---|
getAccessKey, getBorder, getHeight, getInsets, getMouseCursor, getMouseCursorUri, getOutsets, getToolTipText, getWidth, setAccessKey, setBorder, setHeight, setInsets, setMouseCursor, setMouseCursorUri, setOutsets, setToolTipText, setWidth |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Field Detail |
|---|
public static final Alignment DEFAULT_ALIGNMENT
public static final Style DEFAULT_STYLE
public static final ImageReference DEFAULT_TOGGLE_ICON
public static final ImageReference DEFAULT_TOGGLE_ROLLOVER_ICON
public static final ImageReference DEFAULT_TOGGLE_PRESSED_ICON
public static final String PROPERTY_FOCUS_COMPONENT
public static final String PROPERTY_FOCUS_ON_EXPAND
public static final String PROPERTY_POPUP
public static final String PROPERTY_POPUP_ALIGNMENT
public static final String PROPERTY_POPUP_ALWAYS_ON_TOP
public static final String PROPERTY_POPUP_BACKGROUND
public static final String PROPERTY_POPUP_BORDER
public static final String PROPERTY_POPUP_INSETS
public static final String PROPERTY_POPUP_LEFT_OFFSET
public static final String PROPERTY_POPUP_NEXT_TO_TOGGLE
public static final String PROPERTY_POPUP_ON_ROLLOVER
public static final String PROPERTY_POPUP_OUTSETS
public static final String PROPERTY_POPUP_TOP_OFFSET
public static final String PROPERTY_ROLLOVER_BACKGROUND
public static final String PROPERTY_ROLLOVER_BORDER
public static final String PROPERTY_ROLLOVER_ENABLED
public static final String PROPERTY_TARGET
public static final String PROPERTY_TARGET_BACKGROUND
public static final String PROPERTY_TARGET_BORDER
public static final String PROPERTY_TARGET_INSETS
public static final String PROPERTY_TARGET_ROLLOVER_BACKGROUND
public static final String PROPERTY_TARGET_ROLLOVER_BORDER
public static final String PROPERTY_TOGGLE_BACKGROUND
public static final String PROPERTY_TOGGLE_BORDER
public static final String PROPERTY_TOGGLE_ICON
public static final String PROPERTY_TOGGLE_INSETS
public static final String PROPERTY_TOGGLE_PRESSED_BACKGROUND
public static final String PROPERTY_TOGGLE_PRESSED_BORDER
public static final String PROPERTY_TOGGLE_PRESSED_ENABLED
public static final String PROPERTY_TOGGLE_PRESSED_ICON
public static final String PROPERTY_TOGGLE_ROLLOVER_BACKGROUND
public static final String PROPERTY_TOGGLE_ROLLOVER_BORDER
public static final String PROPERTY_TOGGLE_ROLLOVER_ICON
| Constructor Detail |
|---|
public PopUp()
PopUp with no target and no popup component
in place
public PopUp(Component targetComponent,
Component popUpComponent)
PopUp with the specified target and popup
component in place.
| Method Detail |
|---|
public ExpansionGroup getExpansionGroup()
getExpansionGroup in interface ExpandableExpansionGroup of the Expandable.Expandable.getExpansionGroup()public ExpansionModel getExpansionModel()
getExpansionModel in interface ExpandableExpansionModel model of the Expandable.Expandable.getExpansionModel()public Component getPopUp()
public Alignment getPopUpAlignment()
public boolean getPopUpAlwaysOnTop()
setPopUpAlwaysOnTop(boolean)public Color getPopUpBackground()
public Border getPopUpBorder()
public Insets getPopUpInsets()
public int getPopUpLeftOffset()
public Insets getPopUpOutsets()
public int getPopUpTopOffset()
public Color getRolloverBackground()
public Border getRolloverBorder()
public Component getTarget()
public Color getTargetBackground()
public Border getTargetBorder()
public Insets getTargetInsets()
public Color getTargetRolloverBackground()
public Border getTargetRolloverBorder()
public Color getToggleBackground()
public Border getToggleBorder()
public ImageReference getToggleIcon()
public Insets getToggleInsets()
public Color getTogglePressedBackground()
public Border getTogglePressedBorder()
public ImageReference getTogglePressedIcon()
public Color getToggleRolloverBackground()
public Border getToggleRolloverBorder()
public ImageReference getToggleRolloverIcon()
public boolean isExpanded()
isExpanded in interface ExpandableExpandable is expanded or notExpandable.isExpanded()public boolean isPopUpNextToToggle()
public boolean isPopUpOnRollover()
public boolean isRolloverEnabled()
setRolloverEnabled(boolean)public boolean isTogglePressedEnabled()
public void processInput(String inputName,
Object inputValue)
processInput in class ComponentComponent.processInput(java.lang.String,
java.lang.Object)public void setExpanded(boolean isExpanded)
ExpandableExpandable is expanded or not
setExpanded in interface ExpandableExpandable.setExpanded(boolean)public void setExpansionGroup(ExpansionGroup newExpansionGroup)
ExpandableExpansionGroup used by the Expandable.
setExpansionGroup in interface ExpandableExpandable.setExpansionGroup(echopointng.model.ExpansionGroup)public void setExpansionModel(ExpansionModel newValue)
ExpandableExpansionModel model used by the Expandable.
setExpansionModel in interface ExpandableExpandable.setExpansionModel(echopointng.model.ExpansionModel)public void setPopUp(Component newValue)
public void setPopUpAlignment(Alignment newValue)
LEFT- the "left edge" of popup box is shown next to
the "left edge" of the popupCENTER- the popup box is centered horizontally over
the center of the popupRIGHT- the "left edge" of popup box is shown to next
the "right edge" of the popupTOP- the "bottom edge" of the popup box is shown
next to the "top edge" of the popupCENTER- the popup box is centered vertically over
the center of the popupBOTTOM- the "top edge" of the popup box is shown
next to the "bottom edge" of the popup
newValue - -
the new alignment for the popup. If this is null, then default
values will be used for alignmentpublic void setPopUpAlwaysOnTop(boolean newValue)
If this is true, then the popup box with always take the highest position on the screen and will disregard parent clipping and scrolling constraints.
If this is false, then the normal client clipping and scrollling constraints will apply. This can cause the popup box to be shown under other components according to the current hierarchy.
newValue - -
the new popUpAlwaysOnTop valuepublic void setPopUpBackground(Color newValue)
newValue - public void setPopUpBorder(Border newValue)
newValue - public void setPopUpInsets(Insets newValue)
newValue - public void setPopUpLeftOffset(int newValue)
newValue - public void setPopUpNextToToggle(boolean newValue)
The popup alignment and offsets are related the area the poup box is next to.
newValue - -
the new valuepublic void setPopUpOnRollover(boolean newValue)
newValue - -
true if the mouse rollover will cause the popup box to be
shownpublic void setPopUpOutsets(Insets newValue)
newValue - public void setPopUpTopOffset(int newValue)
newValue - public void setRolloverBackground(Color newValue)
newValue - the new Colorpublic void setRolloverBorder(Border newValue)
newValue - the new borderpublic void setRolloverEnabled(boolean newValue)
newValue - true if rollover effects should be enabledpublic void setTarget(Component newValue)
public void setTargetBackground(Color newValue)
newValue - the new Colorpublic void setTargetBorder(Border newValue)
newValue - the new borderpublic void setTargetInsets(Insets newValue)
newValue - the new Insetspublic void setTargetRolloverBackground(Color newValue)
newValue - the new Colorpublic void setTargetRolloverBorder(Border newValue)
newValue - the new borderpublic void setToggleBackground(Color newValue)
newValue - the new Colorpublic void setToggleBorder(Border newValue)
newValue - the new borderpublic void setToggleIcon(ImageReference newValue)
newValue - the new iconpublic void setToggleInsets(Insets newValue)
newValue - the new iconpublic void setTogglePressedBackground(Color newValue)
newValue - the new Colorpublic void setTogglePressedBorder(Border newValue)
newValue - the new borderpublic void setTogglePressedEnabled(boolean newValue)
newValue - true if pressed effects should be enabledpublic void setTogglePressedIcon(ImageReference newValue)
newValue - the new iconpublic void setToggleRolloverBackground(Color newValue)
newValue - the new Colorpublic void setToggleRolloverBorder(Border newValue)
newValue - the new borderpublic void setToggleRolloverIcon(ImageReference newValue)
newValue - the new iconpublic void validate()
validate in class ComponentComponent.validate()public void setFocusComponent(Component component)
component - the component to focus (by default the popup itself)public void setFocusOnExpand(boolean showFocus)
showFocus - true when you want the popup to request focus when becoming
visible, false otherwise (false by default)
|
EchoPoint 2.1.0rc5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||