public class PBrandTree extends JComboTree implements PAppComponent, ItemListener, Serializable
JComboBox.AccessibleJComboBox, JComboBox.KeySelectionManagerJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategyactionCommand, dataModel, editor, isEditable, keySelectionManager, lightWeightPopupEnabled, maximumRowCount, renderer, selectedItemReminderlistenerList, 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_ALIGNMENTABORT, 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, setRootVisibleactionPerformed, 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, updateUIaddAncestorListener, 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, updateadd, 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, 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, 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, transferFocusUpCyclepublic PBrandTree()
public void unregister()
throws RemoteException
unregister in interface PClientComponentRemoteExceptionpublic TreeModel getBrands() throws RemoteException
RemoteExceptionRemoteException - <public void retrieveBrands()
throws RemoteException
RemoteExceptionRemoteException - <public PScopeEntryPoint getActiveBrand() throws RemoteException
RemoteExceptionRemoteException - <public PScopeEntryPoint lookupBrandFromPoid(PModelHandle brandPoid) throws RemoteException
brandPoid - A PModelHandle object representing a Brand poid object.RemoteExceptionpublic boolean setActiveBrand(PScopeEntryPoint newActiveBrand) throws RemoteException
PScopeEntryPoint - A Brand info object containing the brand to which the credentials/scope
should be set toRemoteExceptionRemoteException - <public boolean isDummyRoot()
throws RemoteException
RemoteExceptionpublic boolean isBrandingEnabled()
throws RemoteException
RemoteExceptionRemoteException - <public void addNotify()
addNotify in class JComponentpublic void setModelHandle(PModelHandle data) throws RemoteException
setModelHandle in interface PComponentdata - The new PModelHandle from which information will be
extracted.RemoteExceptionpublic void viewDataChange(PViewDataChangeEvent event) throws RemoteException
viewDataChange in interface PViewDataChangeListenerevent - Data change eventRemoteException - Thrown for errorspublic PModelHandle getModelHandle() throws RemoteException
getModelHandle in interface PComponentRemoteExceptionpublic boolean isLight()
throws RemoteException
setModelHandle() will not be called.isLight in interface PComponentRemoteExceptionpublic String getControllerClassName() throws RemoteException
getControllerClassName in interface PComponentRemoteExceptionpublic Vector getTools()
getTools in interface PClientComponentpublic void setResourceName(String name)
setResourceName in interface PClientComponentname - The new base resource name.public String getResourceName()
getResourceName in interface PClientComponentRemoteExceptionpublic Remote getRemoteComponent()
getRemoteComponent in interface PAppComponentpublic void itemStateChanged(ItemEvent e)
itemStateChanged in interface ItemListenerCopyright © 2003, 2023, Oracle and/or its affiliates.