|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnextapp.echo.app.Component
echopoint.internal.AbstractContainer
echopoint.jquery.DockMenu
public class DockMenu
A component to display a Mac-style dock menu (fisheye menu). The menu consists of a set of images that expand on mouse rollover. Along with the image a label can be displayed when the image is expanded. This component is using the jqDock project: http://www.wizzud.com/jqDock
| Field Summary | |
|---|---|
static String |
ALIGN_BOTTOM
|
static String |
ALIGN_CENTER
|
static String |
ALIGN_LEFT
|
static String |
ALIGN_MIDDLE
|
static String |
ALIGN_RIGHT
|
static String |
ALIGN_TOP
|
static String |
BUTTON_PRESSED_PROPERTY
|
static String |
LABELS_BOTTOM_CENTER
|
static String |
LABELS_BOTTOM_LEFT
|
static String |
LABELS_BOTTOM_RIGHT
|
static String |
LABELS_MIDDLE_CENTER
|
static String |
LABELS_MIDDLE_LEFT
|
static String |
LABELS_MIDDLE_RIGHT
|
static String |
LABELS_TOP_CENTER
|
static String |
LABELS_TOP_LEFT
|
static String |
LABELS_TOP_RIGHT
|
static String |
MODEL_CHANGED_PROPERTY
|
static String |
PROPERTY_ALIGN
|
static String |
PROPERTY_COEFFICIENT
|
static String |
PROPERTY_DISTANCE
|
static String |
PROPERTY_DOCK_WIDTH
|
static String |
PROPERTY_DURATION
|
static String |
PROPERTY_MINOR_AXIS_SIZE
|
static String |
PROPERTY_SHOW_LABELS
|
| Fields inherited from class echopoint.internal.AbstractContainer |
|---|
ACTION_COMMAND_PROPERTY, ACTION_LISTENERS_CHANGED_PROPERTY, INPUT_ACTION, PROPERTY_ALIGNMENT, PROPERTY_BACKGROUND_IMAGE, PROPERTY_BORDER, PROPERTY_HEIGHT, PROPERTY_INSETS, PROPERTY_WIDTH |
| Constructor Summary | |
|---|---|
DockMenu(int minorAxisSize,
String displayLabels,
int duration)
Creates a new DockMenu instance. |
|
| Method Summary | |
|---|---|
void |
addActionListener(ActionListener listener)
Add the specified action listener to this component. |
void |
addMenuItem(String text,
String actionCommand,
int imageWidth,
int imageHeight,
ImageReference icon,
ImageReference expanded)
Adding an item to the menu. |
String |
getAlign()
|
Float |
getCoefficient()
|
String |
getDisplayLabels()
|
Integer |
getDistance()
|
int |
getDockWidth()
|
Integer |
getDuration()
|
List |
getModel()
Returns the model |
boolean |
hasActionListeners()
Determines if the button has any ActionListeners registered. |
void |
processInput(String inputName,
Object inputValue)
|
void |
removeActionListener(ActionListener listener)
Remove the specified action listener from the component. |
void |
setAlign(String align)
|
void |
setCoefficient(Float coefficient)
|
void |
setDistance(Integer distance)
|
| Methods inherited from class echopoint.internal.AbstractContainer |
|---|
fireActionPerformed, getAlignment, getBackgroundImage, getBorder, getHeight, getInsets, getWidth, setAlignment, setBackgroundImage, setBorder, setHeight, setInsets, setWidth |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String MODEL_CHANGED_PROPERTY
public static final String BUTTON_PRESSED_PROPERTY
public static final String PROPERTY_DOCK_WIDTH
public static final String PROPERTY_MINOR_AXIS_SIZE
public static final String PROPERTY_SHOW_LABELS
public static final String PROPERTY_DURATION
public static final String PROPERTY_ALIGN
public static final String PROPERTY_COEFFICIENT
public static final String PROPERTY_DISTANCE
public static final String LABELS_BOTTOM_CENTER
public static final String LABELS_TOP_LEFT
public static final String LABELS_TOP_CENTER
public static final String LABELS_TOP_RIGHT
public static final String LABELS_MIDDLE_LEFT
public static final String LABELS_MIDDLE_CENTER
public static final String LABELS_MIDDLE_RIGHT
public static final String LABELS_BOTTOM_LEFT
public static final String LABELS_BOTTOM_RIGHT
public static final String ALIGN_TOP
public static final String ALIGN_MIDDLE
public static final String ALIGN_BOTTOM
public static final String ALIGN_LEFT
public static final String ALIGN_CENTER
public static final String ALIGN_RIGHT
| Constructor Detail |
|---|
public DockMenu(int minorAxisSize,
String displayLabels,
int duration)
minorAxisSize - The size (height for horizontal menus and width for vertical menus) for the item at restdisplayLabels - If set to null no labels will be displayed.duration - The duration of the expansion and shrinkage.| Method Detail |
|---|
public void addMenuItem(String text,
String actionCommand,
int imageWidth,
int imageHeight,
ImageReference icon,
ImageReference expanded)
text - The text of the label.actionCommand - The command to send in the ActionEvent when the item has been clickedimageWidth - The width of the image when the menu item is fully expandedimageHeight - The height of the image when the menu item is fully expandedicon - The image to be displayedexpanded - The image to show at expanded statepublic List getModel()
public int getDockWidth()
public String getDisplayLabels()
public Integer getDuration()
public void setCoefficient(Float coefficient)
public Float getCoefficient()
public Integer getDistance()
public void setDistance(Integer distance)
public void setAlign(String align)
public String getAlign()
public void processInput(String inputName,
Object inputValue)
processInput in class Componentpublic void addActionListener(ActionListener listener)
addActionListener in class AbstractContainerlistener - The action listener to add.Component.firePropertyChange(String, Object, Object)public void removeActionListener(ActionListener listener)
removeActionListener in class AbstractContainerlistener - The listener that is to be removed.Component.firePropertyChange(String, Object, Object)public boolean hasActionListeners()
ActionListeners registered..
hasActionListeners in class AbstractContainer
|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||