public class PNavigationButton extends JToggleButton implements PAppFieldComponent, PLightComponent, StatusChangeListener, ContactChangeListener, Serializable
JToggleButton.AccessibleJToggleButton, JToggleButton.ToggleButtonModelAbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListenerJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategyactionListener, 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_PROPERTYlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTBOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WESTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
PNavigationButton()
Creates a new navigation button component initially blank
|
| Modifier and Type | Method and Description |
|---|---|
void |
contactChange(ContactChangeEvent e)
Called when contact information is changed
|
void |
firePropertyChange(String prop,
Object oldV,
Object newV) |
void |
fireVetoableChange(String prop,
Object oldV,
Object newV) |
String |
getAssociatedClass()
Technically a no-op for this component
|
String |
getControllerClassName()
Gets the class name for the controller of this class.
|
String |
getDataDescriptor()
Returns a string guaranteed to be unique among the lightweight components
that can be used to describe the data, and acts as a key for it.
|
String |
getDisplayFieldDescription()
Get the data field description used by the component
|
String |
getDisplayFieldFormat()
Gets the display field format used by this component
|
Object |
getField()
Gets the value of the field referred to in the
displayFieldDescription. |
String |
getHelpID()
Gets the current help ID for this component.
|
Object |
getLightData()
Gets the lightweight data object itself.
|
String |
getModelFieldDescription()
Get the data field description used by the component
|
PModelHandle |
getModelHandle()
Gets the data for the component to use.
|
Remote |
getRemoteComponent()
Gets a reference to the remote component (controller) for this object.
|
String |
getResourceName()
Gets the base resource name used in resource lookup.
|
Vector |
getTools()
Gets a list of actions supported by this component.
|
String |
getUIClassID()
Returns a string that specifies the name of the l&f class
that renders this component.
|
boolean |
isLight()
Determines whether this is a lightweight component.
|
void |
removeNotify() |
void |
revertToPrimary(int primary)
Reverts converted currency data back to the primary representation.
|
void |
setAssociatedClass(String name)
Technically a no-op for this component
|
void |
setDisplayFieldDescription(String s)
Set the description of the field(s) in the data model that
this component will display
|
void |
setDisplayFieldFormat(String s)
Sets the java.text.MessageFormat-type format used to display data in
this component.
|
void |
setField(Object field)
Sets the value of the field referred to in the
modelFieldDescription. |
void |
setHelpID(String id)
Sets the help ID for this component.
|
void |
setLightData(Object field)
Sets the lightweight data object.
|
void |
setModelFieldDescription(String s)
Set the description of the field in the data model that this
component is interested in.
|
void |
setModelHandle(PModelHandle pm)
Establishes the data (PModelHandle) for this object
|
void |
setResourceName(String name)
Sets the base resource name used in resource lookup.
|
void |
statusChange(StatusChangeEvent e)
Called when status information is changed
|
Object |
togglePrimaryToSecondary(int from,
int to)
Causes the widget to convert its data using the BEIDManager.
This is a no-op for this component as currency data should not typically be displayed here. This is a no-op. |
void |
unregister()
Causes the component's remote component (Controller) to be disassociated
from the component);
|
void |
viewDataChange(PViewDataChangeEvent e)
Overrides
PViewDataChangeListener. |
getAccessibleContext, paramString, updateUIactionPropertyChanged, addActionListener, addChangeListener, addImpl, addItemListener, checkHorizontalKey, checkVerticalKey, configurePropertiesFromAction, createActionListener, createActionPropertyChangeListener, createChangeListener, createItemListener, doClick, doClick, fireActionPerformed, fireItemStateChanged, fireStateChanged, getAction, getActionCommand, getActionListeners, getChangeListeners, getDisabledIcon, getDisabledSelectedIcon, getDisplayedMnemonicIndex, getHideActionText, 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, setHideActionText, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextGap, setLabel, setLayout, setMargin, setMnemonic, setMnemonic, setModel, setMultiClickThreshhold, setPressedIcon, setRolloverEnabled, setRolloverIcon, setRolloverSelectedIcon, setSelected, setSelectedIcon, setText, setUI, setVerticalAlignment, setVerticalTextPositionaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic PNavigationButton()
public String getUIClassID()
getUIClassID in class JToggleButtonpublic void unregister()
throws RemoteException
PClientComponentunregister in interface PClientComponentRemoteExceptionpublic void setModelHandle(PModelHandle pm) throws RemoteException
setModelHandle in interface PComponentpm - RemoteException - thrown for errorspublic PModelHandle getModelHandle() throws RemoteException
PComponentgetModelHandle in interface PComponentRemoteException - thrown for errorspublic boolean isLight()
throws RemoteException
PComponentgetModelHandle always
returns null, setModelHandle is ignored, and no
property change events are generated.isLight in interface PComponentRemoteException - thrown for errorspublic String getControllerClassName() throws RemoteException
PComponentgetControllerClassName in interface PComponentRemoteException - thrown for errorspublic Vector getTools()
PClientComponentgetTools in interface PClientComponentpublic void setResourceName(String name)
PClientComponentsetResourceName in interface PClientComponentname - public String getResourceName()
PClientComponentgetResourceName in interface PClientComponentpublic void firePropertyChange(String prop, Object oldV, Object newV)
firePropertyChange in class Componentprop - oldV - newV - public void fireVetoableChange(String prop, Object oldV, Object newV) throws PropertyVetoException
fireVetoableChange in class JComponentprop - oldV - newV - PropertyVetoExceptionpublic Remote getRemoteComponent()
PAppComponentgetRemoteComponent in interface PAppComponentpublic void setModelFieldDescription(String s) throws RemoteException
setModelFieldDescription in interface PFieldBeanfieldDesc - A String describing the field used by this component.RemoteExceptionpublic String getModelFieldDescription() throws RemoteException
getModelFieldDescription in interface PFieldBeanRemoteExceptionpublic void setDisplayFieldDescription(String s) throws RemoteException
setDisplayFieldDescription in interface PFieldBeanfieldDesc - A String describing the field displayed by this
component.RemoteExceptionpublic String getDisplayFieldDescription() throws RemoteException
getDisplayFieldDescription in interface PFieldBeanRemoteExceptionpublic void setDisplayFieldFormat(String s) throws RemoteException
setDisplayFieldFormat in interface PAppFieldComponentfieldForm - the format used when displaying the dataRemoteExceptionpublic String getDisplayFieldFormat() throws RemoteException
getDisplayFieldFormat in interface PAppFieldComponentRemoteExceptionpublic void setAssociatedClass(String name) throws RemoteException
setAssociatedClass in interface PFieldBeanThe - name of the storable class this component representsRemoteException - thrown for errorspublic String getAssociatedClass() throws RemoteException
getAssociatedClass in interface PFieldBeanRemoteException - thrown for errorspublic void setField(Object field) throws RemoteException
PFieldBeanmodelFieldDescription.setField in interface PFieldBeanfield - RemoteException - thrown for errorspublic Object getField() throws RemoteException
PFieldBeandisplayFieldDescription.getField in interface PFieldBeanRemoteException - thrown for errorspublic void setLightData(Object field)
PLightComponentsetLightData in interface PLightComponentfield - public Object getLightData()
PLightComponentgetLightData in interface PLightComponentpublic String getDataDescriptor()
PLightComponentgetDataDescriptor in interface PLightComponentpublic void setHelpID(String id)
PAppFieldComponentsetHelpID in interface PAppFieldComponentid - public String getHelpID()
PAppFieldComponentgetHelpID in interface PAppFieldComponentpublic Object togglePrimaryToSecondary(int from, int to) throws RemoteException
togglePrimaryToSecondary in interface PFieldBeanfrom - The current currencyto - The new display currencyRemoteExceptionpublic void revertToPrimary(int primary)
throws RemoteException
PFieldBeanrevertToPrimary in interface PFieldBeanThe - primary currencyRemoteExceptionpublic void viewDataChange(PViewDataChangeEvent e) throws RemoteException
PViewDataChangeListenerPViewDataChangeListener. This method is
no longer called by the controller itself. To ensure backward compatibility,
it is called after the model is set, by any operation that causes a change in
the display data.
The client code should call the appropriate getProperty
methods on the controller to get the data, as the
PViewDataChangeEvent parameter is no longer used.
viewDataChange in interface PViewDataChangeListenere - RemoteException - thrown for errorspublic void contactChange(ContactChangeEvent e)
ContactChangeListenercontactChange in interface ContactChangeListenere - The contact change eventpublic void statusChange(StatusChangeEvent e)
StatusChangeListenerstatusChange in interface StatusChangeListenere - The status change eventpublic void removeNotify()
removeNotify in class AbstractButtonCopyright © 2003, 2023, Oracle and/or its affiliates.