|
Ontimize 5.2072EN | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.AbstractButton
javax.swing.JToggleButton
com.ontimize.gui.button.ToggleButton
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JToggleButton |
javax.swing.JToggleButton.AccessibleJToggleButton, javax.swing.JToggleButton.ToggleButtonModel |
| Nested classes inherited from class javax.swing.AbstractButton |
javax.swing.AbstractButton.AccessibleAbstractButton, javax.swing.AbstractButton.ButtonChangeListener |
| Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
static java.lang.String |
ALIGN
|
protected int |
alignment
The alignment. |
protected int |
alignmentV
The vertical alignment. |
protected java.lang.String |
altIcon
The reference to icon with alt key pressed. |
protected boolean |
altMode
The alt mode state condition. |
protected java.lang.String |
alttext
The reference to text with alt key pressed. |
protected java.lang.String |
altTip
The reference to tip with alt key pressed. |
protected boolean |
bold
The bold font condition. |
protected java.lang.String |
buttonKey
The key to manages the button. |
protected FormPermission |
enabledPermission
A enable permission reference. |
protected boolean |
focusable
Condition about focusable. |
protected java.awt.Color |
fontColor
The font color. |
protected int |
fontSize
The font size. |
protected java.lang.String |
helpId
The help identifier. |
protected java.lang.String |
icon
The icon reference. |
static java.lang.String |
KEY
|
protected java.lang.String |
keyStrokeText
The text to show when key pressed from keyboard. |
protected int |
labelSize
The label size. |
protected Form |
parentForm
A reference to parent form. |
protected int |
preferredHeight
The preferred height. |
protected java.util.ResourceBundle |
resourcesFileName
A reference to resource bundle file. |
protected boolean |
restricted
The restricted condition. |
protected boolean |
rollover
The roll over condition. |
protected boolean |
specifiedTooltip
A condition to check if tooltip is specified. |
protected java.lang.String |
text
The text to show in button. |
static java.lang.String |
TEXT
|
static java.lang.String |
TIP
|
protected java.lang.String |
tooltip
The tooltip key. |
static java.lang.String |
VALIGN
|
protected FormPermission |
visiblePermission
A visible permission reference. |
| Fields inherited from class javax.swing.AbstractButton |
actionListener, BORDER_PAINTED_CHANGED_PROPERTY, changeEvent, changeListener, CONTENT_AREA_FILLED_CHANGED_PROPERTY, DISABLED_ICON_CHANGED_PROPERTY, DISABLED_SELECTED_ICON_CHANGED_PROPERTY, FOCUS_PAINTED_CHANGED_PROPERTY, HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, HORIZONTAL_TEXT_POSITION_CHANGED_PROPERTY, ICON_CHANGED_PROPERTY, itemListener, MARGIN_CHANGED_PROPERTY, MNEMONIC_CHANGED_PROPERTY, model, MODEL_CHANGED_PROPERTY, PRESSED_ICON_CHANGED_PROPERTY, ROLLOVER_ENABLED_CHANGED_PROPERTY, ROLLOVER_ICON_CHANGED_PROPERTY, ROLLOVER_SELECTED_ICON_CHANGED_PROPERTY, SELECTED_ICON_CHANGED_PROPERTY, TEXT_CHANGED_PROPERTY, VERTICAL_ALIGNMENT_CHANGED_PROPERTY, VERTICAL_TEXT_POSITION_CHANGED_PROPERTY |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface com.ontimize.gui.field.FormComponent |
DEBUG |
| Fields inherited from interface com.ontimize.gui.i18n.Internationalization |
DEBUG_LANGUAGE |
| Fields inherited from interface com.ontimize.gui.SecureElement |
DESACTIVATE_COMPONENT_BY_PERMISSION_TIP |
| Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
ToggleButton(java.util.Hashtable parameters)
|
|
| Method Summary | |
protected boolean |
checkEnabledPermission()
Checks the enabled permission condition. |
protected boolean |
checkVisiblePermission()
Checks the visible permission condition. |
void |
free()
Makes the object to release the resources. |
java.lang.Object |
getAttribute()
Gets the button attribute. |
java.lang.Object |
getConstraints(java.awt.LayoutManager parentLayout)
Description method to return the constraints component to
place correctly in parent container.
|
java.lang.String |
getHelpIdString()
|
java.lang.String |
getKey()
Gets the button key. |
java.awt.Dimension |
getPreferredSize()
|
java.util.Vector |
getTextsToTranslate()
Returns all the texts in the element suitable for being translated. |
protected java.lang.String |
getTextWithKeyStroke(java.lang.String text)
Gets the keystroke text. |
void |
init(java.util.Hashtable parameters)
Main method to init an object from parameters hashtable.
|
void |
initPermissions()
|
void |
installHelpId()
|
protected void |
installHighlight(java.util.Hashtable params)
|
boolean |
isAltMode()
Checks the alt mode state. |
boolean |
isRestricted()
|
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
setAltMode(boolean mode)
Sets the alt mode state. |
void |
setBold(boolean bold)
Sets the bold condition. |
void |
setComponentLocale(java.util.Locale l)
|
void |
setFontColor(java.awt.Color fontColor)
Sets the font color. |
void |
setFontSize(int fontSize)
Sets the font size. |
void |
setParentForm(Form form)
Method declaration to set the form that contains the component. |
void |
setResourceBundle(java.util.ResourceBundle resources)
Sets the language resource bundle. |
void |
setRollover(boolean rollover)
Sets rollover. |
protected void |
updateTip()
Updates the tip. |
| Methods inherited from class javax.swing.JToggleButton |
getAccessibleContext, getUIClassID, paramString, updateUI |
| Methods inherited from class javax.swing.AbstractButton |
addActionListener, addChangeListener, addItemListener, checkHorizontalKey, checkVerticalKey, configurePropertiesFromAction, createActionListener, createActionPropertyChangeListener, createChangeListener, createItemListener, doClick, doClick, fireActionPerformed, fireItemStateChanged, fireStateChanged, getAction, getActionCommand, getActionListeners, getChangeListeners, getDisabledIcon, getDisabledSelectedIcon, getDisplayedMnemonicIndex, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getIconTextGap, getItemListeners, getLabel, getMargin, getMnemonic, getModel, getMultiClickThreshhold, getPressedIcon, getRolloverIcon, getRolloverSelectedIcon, getSelectedIcon, getSelectedObjects, getText, getUI, getVerticalAlignment, getVerticalTextPosition, imageUpdate, init, isBorderPainted, isContentAreaFilled, isFocusPainted, isRolloverEnabled, isSelected, paintBorder, removeActionListener, removeChangeListener, removeItemListener, setAction, setActionCommand, setBorderPainted, setContentAreaFilled, setDisabledIcon, setDisabledSelectedIcon, setDisplayedMnemonicIndex, setEnabled, setFocusPainted, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextGap, setLabel, setMargin, setMnemonic, setMnemonic, setModel, setMultiClickThreshhold, setPressedIcon, setRolloverEnabled, setRolloverIcon, setRolloverSelectedIcon, setSelected, setSelectedIcon, setText, setUI, setVerticalAlignment, setVerticalTextPosition |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.ontimize.gui.field.FormComponent |
isEnabled, setEnabled, setVisible |
| Field Detail |
public static final java.lang.String TIP
public static final java.lang.String TEXT
public static final java.lang.String KEY
public static final java.lang.String VALIGN
public static final java.lang.String ALIGN
protected java.lang.String text
protected int alignment
protected int alignmentV
protected java.lang.String buttonKey
protected boolean focusable
protected java.lang.String tooltip
protected boolean specifiedTooltip
protected boolean rollover
protected java.util.ResourceBundle resourcesFileName
protected Form parentForm
protected FormPermission visiblePermission
protected FormPermission enabledPermission
protected int labelSize
protected int preferredHeight
protected int fontSize
protected java.awt.Color fontColor
protected boolean bold
protected java.lang.String keyStrokeText
protected java.lang.String helpId
protected java.lang.String icon
protected java.lang.String altIcon
protected java.lang.String alttext
protected java.lang.String altTip
protected boolean restricted
protected boolean altMode
| Constructor Detail |
public ToggleButton(java.util.Hashtable parameters)
throws java.lang.Exception
| Method Detail |
public java.lang.Object getConstraints(java.awt.LayoutManager parentLayout)
FormComponentconstraints component to
place correctly in parent container.
getConstraints in interface FormComponentparentLayout - the parent container reference
public void init(java.util.Hashtable parameters)
throws java.lang.Exception
FormComponenthashtable.
init in interface FormComponentparameters - the hashtable with pairs (Key,Value). For example:
| Key | Value |
| align | center |
| attr | attribute |
| ... | ... |
java.lang.Exception - when Exception occurspublic java.lang.Object getAttribute()
getAttribute in interface IdentifiedElementprotected void installHighlight(java.util.Hashtable params)
public java.lang.String getKey()
public void setBold(boolean bold)
bold - the bold condition.public void setFontSize(int fontSize)
fontSize - the font sizepublic void setFontColor(java.awt.Color fontColor)
fontColor - the font colorpublic java.util.Vector getTextsToTranslate()
Internationalization
getTextsToTranslate in interface Internationalizationpublic void setComponentLocale(java.util.Locale l)
setComponentLocale in interface Internationalizationpublic void setResourceBundle(java.util.ResourceBundle resources)
Internationalization
setResourceBundle in interface Internationalizationresources - the new language bundle.protected void updateTip()
JComponent.setToolTipText(String)protected java.lang.String getTextWithKeyStroke(java.lang.String text)
text - the basic button text
public void setParentForm(Form form)
AccessForm
setParentForm in interface AccessFormform - the form reference
public void free()
throws java.lang.Exception
Freeable
free in interface Freeablejava.lang.Exceptionpublic void setRollover(boolean rollover)
rollover - the roll-over conditionpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic java.awt.Dimension getPreferredSize()
public void initPermissions()
initPermissions in interface SecureElementprotected boolean checkVisiblePermission()
protected boolean checkEnabledPermission()
public boolean isRestricted()
isRestricted in interface SecureElementpublic java.lang.String getHelpIdString()
getHelpIdString in interface HasHelpIdComponentpublic void installHelpId()
installHelpId in interface HasHelpIdComponentpublic void setAltMode(boolean mode)
mode - the mode conditionpublic boolean isAltMode()
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||