Package org.csstudio.swt.widgets.figures
Class AbstractBoolControlFigure
java.lang.Object
org.eclipse.draw2d.Figure
org.csstudio.swt.widgets.figures.AbstractBoolFigure
org.csstudio.swt.widgets.figures.AbstractBoolControlFigure
- All Implemented Interfaces:
Introspectable
,org.eclipse.draw2d.IFigure
- Direct Known Subclasses:
BoolButtonFigure
,BoolSwitchFigure
,ImageBoolButtonFigure
Abstract boolean control figure for bool button, toggle switch...
-
Nested Class Summary
Nested classes/interfaces inherited from class org.csstudio.swt.widgets.figures.AbstractBoolFigure
AbstractBoolFigure.BoolLabelPosition, AbstractBoolFigure.TotalBits
Nested classes/interfaces inherited from class org.eclipse.draw2d.Figure
org.eclipse.draw2d.Figure.FigureIterator, org.eclipse.draw2d.Figure.IdentitySearch, org.eclipse.draw2d.Figure.ReverseFigureChildrenIterator
Nested classes/interfaces inherited from interface org.eclipse.draw2d.IFigure
org.eclipse.draw2d.IFigure.NoInsets
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.csstudio.swt.widgets.figures.AbstractBoolControlFigure.ButtonPresser
protected String
protected static final Color
protected static final int
The alpha (0 is transparency and 255 is opaque) for disabled paintprotected String
protected boolean
protected boolean
Fields inherited from class org.csstudio.swt.widgets.figures.AbstractBoolFigure
bit, booleanValue, boolLabel, boolLabelPosition, offColor, offLabel, onColor, onLabel, showBooleanLabel, value
Fields inherited from class org.eclipse.draw2d.Figure
bgColor, border, bounds, fgColor, flags, font, MAX_FLAG, maxSize, minSize, NO_MANAGER, prefSize, toolTip
Fields inherited from interface org.eclipse.draw2d.IFigure
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add a boolean control listener which will be executed when pressed or releasedprotected void
fireManualValueChange
(boolean newManualValue) Inform all boolean control listeners, that the manual value has changed.boolean
boolean
Deprecated.boolean
isToggle()
void
void
setConfirmTip
(String confirmTip) void
setPassword
(String password) void
setRunMode
(boolean runMode) void
setShowConfirmDialog
(boolean showConfirmDialog) Deprecated.void
void
setToggle
(boolean toggle) Methods inherited from class org.csstudio.swt.widgets.figures.AbstractBoolFigure
calculateLabelLocation, getBeanInfo, getBit, getBooleanValue, getBoolLabelPosition, getLabelLocation, getLabelLocation, getOffColor, getOffLabel, getOnColor, getOnLabel, getTotalBits, getValue, invalidate, isOpaque, isShowBooleanLabel, setBit, setBooleanValue, setBoolLabelPosition, setEnabled, setFont, setOffColor, setOffLabel, setOnColor, setOnLabel, setShowBooleanLabel, setTotalBits, setValue, setValue, updateBoolValue, updateValue
Methods inherited from class org.eclipse.draw2d.Figure
add, add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findDescendantAtExcluding, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, findMouseEventTargetInDescendantsAt, fireCoordinateSystemChanged, fireFigureMoved, fireMoved, firePropertyChange, firePropertyChange, firePropertyChange, getBackgroundColor, getBorder, getBounds, getChildren, getChildrenRevIterable, getClientArea, getClientArea, getClippingStrategy, getCursor, getFlag, getFont, getForegroundColor, getInsets, getLayoutManager, getListeners, getListenersIterable, getLocalBackgroundColor, getLocalFont, getLocalForegroundColor, getLocation, getMaximumSize, getMinimumSize, getMinimumSize, getParent, getPreferredSize, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMirrored, isMouseEventTarget, isRequestFocusEnabled, isShowing, isValid, isValidationRoot, isVisible, layout, optimizeClip, paint, paintBorder, paintChildren, paintClientArea, paintFigure, primTranslate, remove, removeAll, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setBounds, setChildrenDirection, setChildrenEnabled, setChildrenOrientation, setClippingStrategy, setConstraint, setCursor, setFlag, setFocusTraversable, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, useLocalCoordinates, validate
-
Field Details
-
toggle
protected boolean toggle -
showConfirmDialog
-
password
-
confirmTip
-
runMode
protected boolean runMode -
buttonPresser
protected org.csstudio.swt.widgets.figures.AbstractBoolControlFigure.ButtonPresser buttonPresser -
DISABLE_COLOR
-
DISABLED_ALPHA
protected static final int DISABLED_ALPHAThe alpha (0 is transparency and 255 is opaque) for disabled paint- See Also:
-
-
Constructor Details
-
AbstractBoolControlFigure
public AbstractBoolControlFigure()
-
-
Method Details
-
addManualValueChangeListener
add a boolean control listener which will be executed when pressed or released- Parameters:
listener
- the listener to add
-
removeManualValueChangeListener
-
fireManualValueChange
protected void fireManualValueChange(boolean newManualValue) Inform all boolean control listeners, that the manual value has changed.- Parameters:
newManualValue
- the new manual value
-
getConfirmTip
-
getPassword
-
isRunMode
public boolean isRunMode() -
isShowConfirmDialog
Deprecated.- Returns:
- the showConfirmDialog
-
getShowConfirmDialog
- Returns:
- the condition when confirm dialog should be shown.
-
isToggle
public boolean isToggle()- Returns:
- the toggle
-
setConfirmTip
- Parameters:
confirmTip
- the confirmTip to set
-
setPassword
- Parameters:
password
- the password to set
-
setRunMode
public void setRunMode(boolean runMode) - Parameters:
runMode
- the runMode to set
-
setShowConfirmDialog
Deprecated.Deprecated. UsesetShowConfirmDialog(ShowConfirmDialog)
- Parameters:
showConfirmDialog
- the showConfirmDialog to set
-
setShowConfirmDialog
-
setToggle
public void setToggle(boolean toggle) - Parameters:
toggle
- the toggle to set
-