public class PBrandTree extends JComboTree implements PAppComponent, ItemListener, Serializable
JComboBox.AccessibleJComboBox, JComboBox.KeySelectionManager
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
actionCommand, dataModel, editor, isEditable, keySelectionManager, lightWeightPopupEnabled, maximumRowCount, renderer, selectedItemReminder
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
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
PBrandTree()
Default constructor that creates a Brand component
|
Modifier and Type | Method and Description |
---|---|
void |
addNotify()
Baseclass (JComponent) override that sets a model for the View
|
PScopeEntryPoint |
getActiveBrand()
Returns the active brand through the PScopeEntryPoint Object.
|
TreeModel |
getBrands()
Returns the Brand hierarchy in a swing TreeModel.
|
String |
getControllerClassName()
Retrieves the class name of this component's controller
|
PModelHandle |
getModelHandle()
Retrieves the PModelHandle for this component
|
Remote |
getRemoteComponent()
Get a reference to the remote component for this object.
|
String |
getResourceName()
Get the base resource name used in resource lookup.
|
Vector |
getTools()
Get a list of Actions supported by this component.
|
boolean |
isBrandingEnabled()
Check if branding is enabled.
|
boolean |
isDummyRoot()
Returns true if the root node of the tree model is a dummy root node only serving the
purpose of parenting loose brands and account groups.
|
boolean |
isLight()
Determines if this is component defers PModelHandle knowledge to
its parent container.
|
void |
itemStateChanged(ItemEvent e) |
PScopeEntryPoint |
lookupBrandFromPoid(PModelHandle brandPoid)
Used to lookup the brand that is associated with the given brand poid.
|
void |
retrieveBrands()
Retrieves the Brand hierarchy from the database.
|
boolean |
setActiveBrand(PScopeEntryPoint newActiveBrand)
Sets the given brand as the new active brand in the infranet system.
|
void |
setModelHandle(PModelHandle data)
Establishes the PModelHandle for this component
|
void |
setResourceName(String name)
Set the base resource name used in resource lookup.
|
void |
unregister()
Causes this component to be disassociated from its controller (GC'd)
|
void |
viewDataChange(PViewDataChangeEvent event)
Called when the view data changes.
|
isRootVisible, setModel, setRootVisible
actionPerformed, actionPropertyChanged, addActionListener, addItem, addItemListener, addPopupMenuListener, configureEditor, configurePropertiesFromAction, contentsChanged, createActionPropertyChangeListener, createDefaultKeySelectionManager, fireActionEvent, fireItemStateChanged, firePopupMenuCanceled, firePopupMenuWillBecomeInvisible, firePopupMenuWillBecomeVisible, getAccessibleContext, getAction, getActionCommand, getActionListeners, getEditor, getItemAt, getItemCount, getItemListeners, getKeySelectionManager, getMaximumRowCount, getModel, getPopupMenuListeners, getPrototypeDisplayValue, getRenderer, getSelectedIndex, getSelectedItem, getSelectedObjects, getUI, getUIClassID, hidePopup, insertItemAt, installAncestorListener, intervalAdded, intervalRemoved, isEditable, isLightWeightPopupEnabled, isPopupVisible, paramString, processKeyBinding, processKeyEvent, removeActionListener, removeAllItems, removeItem, removeItemAt, removeItemListener, removePopupMenuListener, selectedItemChanged, selectWithKeyChar, setAction, setActionCommand, setEditable, setEditor, setEnabled, setKeySelectionManager, setLightWeightPopupEnabled, setMaximumRowCount, setModel, setPopupVisible, setPrototypeDisplayValue, setRenderer, setSelectedIndex, setSelectedItem, setUI, showPopup, updateUI
addAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, 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, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, 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, addImpl, 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, setLayout, 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, 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, imageUpdate, 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 PBrandTree()
public void unregister() throws RemoteException
unregister
in interface PClientComponent
RemoteException
public TreeModel getBrands() throws RemoteException
RemoteException
RemoteException
- <public void retrieveBrands() throws RemoteException
RemoteException
RemoteException
- <public PScopeEntryPoint getActiveBrand() throws RemoteException
RemoteException
RemoteException
- <public PScopeEntryPoint lookupBrandFromPoid(PModelHandle brandPoid) throws RemoteException
brandPoid
- A PModelHandle object representing a Brand poid object.RemoteException
public boolean setActiveBrand(PScopeEntryPoint newActiveBrand) throws RemoteException
PScopeEntryPoint
- A Brand info object containing the brand to which the credentials/scope
should be set toRemoteException
RemoteException
- <public boolean isDummyRoot() throws RemoteException
RemoteException
public boolean isBrandingEnabled() throws RemoteException
RemoteException
RemoteException
- <public void addNotify()
addNotify
in class JComponent
public void setModelHandle(PModelHandle data) throws RemoteException
setModelHandle
in interface PComponent
data
- The new PModelHandle from which information will be
extracted.RemoteException
public void viewDataChange(PViewDataChangeEvent event) throws RemoteException
viewDataChange
in interface PViewDataChangeListener
event
- Data change eventRemoteException
- Thrown for errorspublic PModelHandle getModelHandle() throws RemoteException
getModelHandle
in interface PComponent
RemoteException
public boolean isLight() throws RemoteException
setModelHandle()
will not be called.isLight
in interface PComponent
RemoteException
public String getControllerClassName() throws RemoteException
getControllerClassName
in interface PComponent
RemoteException
public Vector getTools()
getTools
in interface PClientComponent
public void setResourceName(String name)
setResourceName
in interface PClientComponent
name
- The new base resource name.public String getResourceName()
getResourceName
in interface PClientComponent
RemoteException
public Remote getRemoteComponent()
getRemoteComponent
in interface PAppComponent
public void itemStateChanged(ItemEvent e)
itemStateChanged
in interface ItemListener
Copyright © 2003, 2023, Oracle and/or its affiliates.