public class PNavigationButton extends JToggleButton implements PAppFieldComponent, PLightComponent, StatusChangeListener, ContactChangeListener, Serializable
JToggleButton.AccessibleJToggleButton, JToggleButton.ToggleButtonModel
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
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
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
ABORT, 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, updateUI
actionPropertyChanged, 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, setVerticalTextPosition
addAncestorListener, 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, update
add, 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, validateTree
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, 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, transferFocusUpCycle
public PNavigationButton()
public String getUIClassID()
getUIClassID
in class JToggleButton
public void unregister() throws RemoteException
PClientComponent
unregister
in interface PClientComponent
RemoteException
public void setModelHandle(PModelHandle pm) throws RemoteException
setModelHandle
in interface PComponent
pm
- RemoteException
- thrown for errorspublic PModelHandle getModelHandle() throws RemoteException
PComponent
getModelHandle
in interface PComponent
RemoteException
- thrown for errorspublic boolean isLight() throws RemoteException
PComponent
getModelHandle
always
returns null, setModelHandle
is ignored, and no
property change events are generated.isLight
in interface PComponent
RemoteException
- thrown for errorspublic String getControllerClassName() throws RemoteException
PComponent
getControllerClassName
in interface PComponent
RemoteException
- thrown for errorspublic Vector getTools()
PClientComponent
getTools
in interface PClientComponent
public void setResourceName(String name)
PClientComponent
setResourceName
in interface PClientComponent
name
- public String getResourceName()
PClientComponent
getResourceName
in interface PClientComponent
public void firePropertyChange(String prop, Object oldV, Object newV)
firePropertyChange
in class Component
prop
- oldV
- newV
- public void fireVetoableChange(String prop, Object oldV, Object newV) throws PropertyVetoException
fireVetoableChange
in class JComponent
prop
- oldV
- newV
- PropertyVetoException
public Remote getRemoteComponent()
PAppComponent
getRemoteComponent
in interface PAppComponent
public void setModelFieldDescription(String s) throws RemoteException
setModelFieldDescription
in interface PFieldBean
fieldDesc
- A String describing the field used by this component.RemoteException
public String getModelFieldDescription() throws RemoteException
getModelFieldDescription
in interface PFieldBean
RemoteException
public void setDisplayFieldDescription(String s) throws RemoteException
setDisplayFieldDescription
in interface PFieldBean
fieldDesc
- A String describing the field displayed by this
component.RemoteException
public String getDisplayFieldDescription() throws RemoteException
getDisplayFieldDescription
in interface PFieldBean
RemoteException
public void setDisplayFieldFormat(String s) throws RemoteException
setDisplayFieldFormat
in interface PAppFieldComponent
fieldForm
- the format used when displaying the dataRemoteException
public String getDisplayFieldFormat() throws RemoteException
getDisplayFieldFormat
in interface PAppFieldComponent
RemoteException
public void setAssociatedClass(String name) throws RemoteException
setAssociatedClass
in interface PFieldBean
The
- name of the storable class this component representsRemoteException
- thrown for errorspublic String getAssociatedClass() throws RemoteException
getAssociatedClass
in interface PFieldBean
RemoteException
- thrown for errorspublic void setField(Object field) throws RemoteException
PFieldBean
modelFieldDescription
.setField
in interface PFieldBean
field
- RemoteException
- thrown for errorspublic Object getField() throws RemoteException
PFieldBean
displayFieldDescription
.getField
in interface PFieldBean
RemoteException
- thrown for errorspublic void setLightData(Object field)
PLightComponent
setLightData
in interface PLightComponent
field
- public Object getLightData()
PLightComponent
getLightData
in interface PLightComponent
public String getDataDescriptor()
PLightComponent
getDataDescriptor
in interface PLightComponent
public void setHelpID(String id)
PAppFieldComponent
setHelpID
in interface PAppFieldComponent
id
- public String getHelpID()
PAppFieldComponent
getHelpID
in interface PAppFieldComponent
public Object togglePrimaryToSecondary(int from, int to) throws RemoteException
togglePrimaryToSecondary
in interface PFieldBean
from
- The current currencyto
- The new display currencyRemoteException
public void revertToPrimary(int primary) throws RemoteException
PFieldBean
revertToPrimary
in interface PFieldBean
The
- primary currencyRemoteException
public void viewDataChange(PViewDataChangeEvent e) throws RemoteException
PViewDataChangeListener
PViewDataChangeListener
. 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 PViewDataChangeListener
e
- RemoteException
- thrown for errorspublic void contactChange(ContactChangeEvent e)
ContactChangeListener
contactChange
in interface ContactChangeListener
e
- The contact change eventpublic void statusChange(StatusChangeEvent e)
StatusChangeListener
statusChange
in interface StatusChangeListener
e
- The status change eventpublic void removeNotify()
removeNotify
in class AbstractButton
Copyright © 2003, 2023, Oracle and/or its affiliates.