public class CommandButtonVP extends ButtonBaseVP
StyledElementViewPart.Role
menuAtLeft, role, selectElement, view
BOTTOM, disabledIcon, icon, iconHeight, iconWidth, LEFT, RIGHT, state, toolTip, TOP
DEFAULT_STYLE, style
Constructor and Description |
---|
CommandButtonVP(Style style,
StyledElementView view,
StyledElementViewPart.Role role) |
Modifier and Type | Method and Description |
---|---|
Command |
getCommand() |
String |
getCommandParameter() |
CommandMenu |
getMenu() |
boolean |
hasCommand() |
boolean |
hasMenu() |
void |
setCommand(Command command) |
void |
setCommandParameter(String commandParameter) |
void |
setMenu(CommandMenu menu) |
detachingViewFromModel, getCommand, getElementView, getMenuAtLeft, getRole, getStyledElementView, getView, grabsMouseButton, handleMouseEvent, isElementSelected, reportCommandError, selectElement, selectElement, setElementSelected, setMenuAtLeft
doAction, getFirstBaseLine, getIcon, getIconGap, getIconPosition, getLastBaseLine, getToolTip, hasIcon, hasText, isEnabled, isPressed, layoutContent, paintContent, setEnabled, setIcon, setIconGap, setIconPosition, setPressed, setToolTip
doLayoutContent, doPaintContent, getText, setText
refresh
drawBorder, drawBox, drawEmptyContent, drawEmptyTextContent, getContentSizeConstraints, getEmptyContentSize, getEmptyContentSize, getMarginBottom, getMarginTop, getStyle, hasDynamicVerticalMargins, layout, paint, setStyle
focusGained, focusLost, gadgetToPanel, gadgetToRoot, getAncestors, getBounds, getBounds, getCursor, getEventDispatcher, getFontMetrics, getGadgetPanel, getGraphics, getLocation, getLocation, getNonBreakableVerticalRanges, getRoot, getSize, getSize, getToolkit, handleAppEvent, handleKeyEvent, hasFocus, isAppEventHandler, layout, makeRectangleVisible, makeRectangleVisible, panelToGadget, print, relayout, relayout, repaint, repaint, requestFocus
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMarginBottom, getMarginTop, getStyle, hasDynamicVerticalMargins
public CommandButtonVP(Style style, StyledElementView view, StyledElementViewPart.Role role)
public boolean hasCommand()
hasCommand
in class ButtonBaseVP
public void setCommand(Command command)
setCommand
in class ButtonBaseVP
public Command getCommand()
getCommand
in class ButtonBaseVP
public void setCommandParameter(String commandParameter)
setCommandParameter
in class ButtonBaseVP
public String getCommandParameter()
getCommandParameter
in class ButtonBaseVP
public boolean hasMenu()
hasMenu
in class ButtonBaseVP
public void setMenu(CommandMenu menu)
setMenu
in class ButtonBaseVP
public CommandMenu getMenu()
getMenu
in class ButtonBaseVP