public class GroupLayoutContainer extends ContainerSubPanel implements ConfigurationListener, LayoutProfileProvider
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
activeProfile |
boolean |
autoCreateContainerGaps |
boolean |
autoCreateGaps |
protected java.lang.String |
defaultProfile |
static java.lang.String |
GROUP_LAYOUT_SCHEMA |
boolean |
honorsVisibility |
java.lang.String |
horizontalGroup |
java.lang.String |
linkSizeHorizontal |
java.lang.String |
linkSizeVertical |
protected static java.lang.String |
NONE_PROFILE_STRING |
java.lang.String |
profiles |
protected java.util.LinkedHashMap<java.lang.String,pt.lsts.neptus.console.plugins.containers.GroupLayoutContainer.LayoutHolder> |
profilesLayouts |
protected java.util.LinkedHashMap<java.lang.String,java.lang.String> |
profilesList |
static javax.xml.validation.Schema |
schema |
boolean |
showOnlyProfilesToUser |
java.lang.String |
verticalGroup |
maximizePanel, panels
dialog, popUpAction
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
GroupLayoutContainer(ConsoleLayout console) |
Modifier and Type | Method and Description |
---|---|
boolean |
addSubPanelExtra(ConsolePanel panel)
Called from
ContainerSubPanel.addSubPanel(ConsolePanel) for extra work. |
void |
clean()
This is called when the console wants to remove the panel from the console (override it if
needed to properly disposal of the component).
|
void |
doLayout()
This needs to be here in case the Horizontal and Vertical are not balanced, that is
if a component is missing in one of the layouts.
|
java.lang.String |
getActiveProfile()
If the LayoutProfileProvider child's have a different profile
is acceptable to only inform the own profile.
|
void |
init()
Empty implementation.
|
java.lang.String[] |
listProfileNames() |
static void |
main(java.lang.String[] args) |
boolean |
maximizePanelOnContainer(java.awt.Component comp) |
void |
propertiesChanged() |
protected void |
readChildFromXml(org.dom4j.Element el)
Used to process the child elements of the configuration of node.
|
void |
removeSubPanelExtra(ConsolePanel sp)
Called from
ContainerSubPanel.removeSubPanel(ConsolePanel) for extra work. |
boolean |
resetActiveProfile() |
boolean |
setActiveProfile(java.lang.String name)
To activate a profile.
|
void |
setEditMode(boolean edit) |
boolean |
supportsMaximizePanelOnContainer() |
addSubPanel, addSubPanelBulkFinishUp, addSubPanelFinishUp, cleanSubPanel, getSubPanelByName, getSubPanels, getSubPanelsCount, initSubPanel, isAddSubPanelToPanelOrLetExtensionDoIt, isChildsBulkLoad, isLocked, lock, removeSubPanel, removeSubPanel, setMaximizePanel, subPanelList, unLock, writeChildToXml, writePropertiesToXml
activateComponents, addCheckMenuItem, addMenu, addMenuItem, asDocument, asDocument, asElement, asElement, asXML, asXML, deactivateComponents, getChildren, getConsole, getDescription, getEditMode, getImageIcon, getMainpanel, getMainVehicleId, getName, getProperties, getPropertiesDialogTitle, getPropertiesErrors, getState, getVisibility, inDocument, inElement, isFixedPosition, isFixedSize, isResizable, mainVehicleChange, onMessage, paint, parentResized, parseXML, popupHidden, popupShown, post, readPropertiesFromXml, recalculateRelativePosAndSize, removeCheckMenuItem, removeMenuItem, send, send, sendToOtherCCUs, sendViaIridium, setFixedPosition, setFixedSize, setPopupPosition, setProperties, setResizable, setVisibility
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, 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, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, 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, setEnabled, 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, 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, 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 static final java.lang.String GROUP_LAYOUT_SCHEMA
protected static final java.lang.String NONE_PROFILE_STRING
public boolean autoCreateContainerGaps
public boolean autoCreateGaps
public boolean honorsVisibility
public java.lang.String horizontalGroup
public java.lang.String verticalGroup
public java.lang.String linkSizeHorizontal
public java.lang.String linkSizeVertical
public java.lang.String profiles
public boolean showOnlyProfilesToUser
protected java.util.LinkedHashMap<java.lang.String,java.lang.String> profilesList
protected java.util.LinkedHashMap<java.lang.String,pt.lsts.neptus.console.plugins.containers.GroupLayoutContainer.LayoutHolder> profilesLayouts
protected java.lang.String defaultProfile
protected java.lang.String activeProfile
public static javax.xml.validation.Schema schema
public GroupLayoutContainer(ConsoleLayout console)
public void doLayout()
doLayout
in class java.awt.Container
Container.doLayout()
public void init()
ConsolePanel
init
in class ContainerSubPanel
public void clean()
ConsolePanel
clean
in class ContainerSubPanel
public void propertiesChanged()
propertiesChanged
in interface ConfigurationListener
protected void readChildFromXml(org.dom4j.Element el)
ConsolePanel
readChildFromXml
in class ContainerSubPanel
public boolean addSubPanelExtra(ConsolePanel panel)
ContainerSubPanel
ContainerSubPanel.addSubPanel(ConsolePanel)
for extra work.
Empty implementation, override if needed it.
Return false to abort addition.addSubPanelExtra
in class ContainerSubPanel
public void removeSubPanelExtra(ConsolePanel sp)
ContainerSubPanel
ContainerSubPanel.removeSubPanel(ConsolePanel)
for extra work.
Empty implementation, override if needed it.removeSubPanelExtra
in class ContainerSubPanel
public void setEditMode(boolean edit)
setEditMode
in class ContainerSubPanel
public java.lang.String getActiveProfile()
LayoutProfileProvider
getActiveProfile
in interface LayoutProfileProvider
LayoutProfileProvider.getActiveProfile()
public boolean setActiveProfile(java.lang.String name)
setActiveProfile
in interface LayoutProfileProvider
name
- LayoutProfileProvider.setActiveProfile(java.lang.String)
public java.lang.String[] listProfileNames()
listProfileNames
in interface LayoutProfileProvider
public boolean resetActiveProfile()
public boolean supportsMaximizePanelOnContainer()
supportsMaximizePanelOnContainer
in interface LayoutProfileProvider
public boolean maximizePanelOnContainer(java.awt.Component comp)
maximizePanelOnContainer
in interface LayoutProfileProvider
public static void main(java.lang.String[] args)
args
- Copyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.