|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo.app.Component nextapp.echo.app.Row ch.uzh.ifi.attempto.acewiki.gui.StatementMenu
public class StatementMenu
This class represents drop down menus that are shown in front of the ACE sentences as small triangles. Such drop down menus can have different appearances based on different types.
Field Summary | |
---|---|
static int |
COMMENT_TYPE
This type is for comments. |
static int |
EMPTY_TYPE
This type is for drop down menus with no statement. |
static int |
INFERRED_TYPE
This type is for sentences that are automatically inferred. |
static int |
NOREASONING_TYPE
This type is for sentences that are not used for reasoning. |
static int |
QUESTION_TYPE
This type is for questions. |
static int |
REASONING_TYPE
This type is for sentences used for reasoning. |
Fields inherited from class nextapp.echo.app.Row |
---|
PROPERTY_ALIGNMENT, PROPERTY_BORDER, PROPERTY_CELL_SPACING, PROPERTY_INSETS |
Fields inherited from class nextapp.echo.app.Component |
---|
CHILD_VISIBLE_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FOCUS_NEXT_ID_CHANGED_PROPERTY, FOCUS_PREVIOUS_ID_CHANGED_PROPERTY, LAYOUT_DIRECTION_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, PROPERTY_BACKGROUND, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_LAYOUT_DATA, STYLE_CHANGED_PROPERTY, STYLE_NAME_CHANGED_PROPERTY, VISIBLE_CHANGED_PROPERTY |
Constructor Summary | |
---|---|
StatementMenu(int type,
Wiki wiki,
nextapp.echo.app.event.ActionListener actionListener)
Creates a empty drop down menu with an icon of the given color. |
Method Summary | |
---|---|
void |
actionPerformed(nextapp.echo.app.event.ActionEvent e)
|
void |
addMenuEntry(java.lang.String text,
java.lang.String tooltip)
Adds a menu entry to the drop down menu. |
void |
addMenuSeparator()
Adds a separator to the menu. |
boolean |
isExpanded()
Returns whether the menu is expanded. |
void |
setExpanded(boolean expanded)
This method shows or hides the popup part of the menu. |
Methods inherited from class nextapp.echo.app.Row |
---|
getAlignment, getBorder, getCellSpacing, getInsets, setAlignment, setBorder, setCellSpacing, setInsets |
Methods inherited from class nextapp.echo.app.Component |
---|
add, add, addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, get, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusNextId, getFocusPreviousId, getFont, getForeground, getId, getIndex, getLayoutData, getLayoutDirection, getLocale, getLocalStyle, getParent, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, init, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isValidChild, isValidParent, isVisible, processInput, remove, remove, removeAll, removePropertyChangeListener, removePropertyChangeListener, set, setBackground, setComponents, setEnabled, setFocusNextId, setFocusPreviousId, setFocusTraversalParticipant, setFont, setForeground, setId, setIndex, setLayoutData, setLayoutDirection, setLocale, setRenderId, setStyle, setStyleName, setVisible, validate, verifyInput, visibleIndexOf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int REASONING_TYPE
public static final int NOREASONING_TYPE
public static final int QUESTION_TYPE
public static final int INFERRED_TYPE
public static final int COMMENT_TYPE
public static final int EMPTY_TYPE
Constructor Detail |
---|
public StatementMenu(int type, Wiki wiki, nextapp.echo.app.event.ActionListener actionListener)
type
- The type of the statement.wiki
- The wiki object.actionListener
- The action-listener.Method Detail |
---|
public void addMenuEntry(java.lang.String text, java.lang.String tooltip)
text
- The text of the menu entry.tooltip
- The tool tip text of the menu entry.public void addMenuSeparator()
public void actionPerformed(nextapp.echo.app.event.ActionEvent e)
actionPerformed
in interface nextapp.echo.app.event.ActionListener
public void setExpanded(boolean expanded)
expanded
- true to show the popup; false to hide it.public boolean isExpanded()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |