public abstract class ConsolePanel extends javax.swing.JPanel implements PropertiesProvider, XmlInOutMethods, pt.lsts.neptus.messages.listener.MessageListener<pt.lsts.neptus.messages.listener.MessageInfo,pt.lsts.imc.IMCMessage>, MainVehicleChangeListener
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
protected javax.swing.JDialog |
dialog |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
ConsolePanel(ConsoleLayout console) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activateComponents() |
javax.swing.JCheckBoxMenuItem |
addCheckMenuItem(java.lang.String itemPath,
javax.swing.ImageIcon icon,
CheckMenuChangeListener checkListener)
Creates and retrieves a console check menu item (toggle)
|
javax.swing.JMenu |
addMenu(java.lang.String itemPath,
javax.swing.ImageIcon icon) |
javax.swing.JMenuItem |
addMenuItem(java.lang.String itemPath,
javax.swing.ImageIcon icon,
java.awt.event.ActionListener actionListener)
Creates and retrieves a console menu item
|
org.dom4j.Document |
asDocument() |
org.dom4j.Document |
asDocument(java.lang.String rootElementName) |
org.dom4j.Element |
asElement() |
org.dom4j.Element |
asElement(java.lang.String rootElementName) |
java.lang.String |
asXML()
Este problema foi resolvido com a versão 1.6.1 do DOM4J.
|
java.lang.String |
asXML(java.lang.String rootElementName)
Este problema foi resolvido com a versão 1.6.1 do DOM4J.
|
void |
clean()
Empty implementation.
|
abstract void |
cleanSubPanel() |
protected void |
deactivateComponents() |
protected ConsolePanel[] |
getChildren() |
ConsoleLayout |
getConsole() |
java.lang.String |
getDescription() |
boolean |
getEditMode() |
javax.swing.ImageIcon |
getImageIcon() |
protected MainPanel |
getMainpanel() |
java.lang.String |
getMainVehicleId() |
java.lang.String |
getName() |
com.l2fprod.common.propertysheet.DefaultProperty[] |
getProperties() |
java.lang.String |
getPropertiesDialogTitle() |
java.lang.String[] |
getPropertiesErrors(com.l2fprod.common.propertysheet.Property[] properties) |
protected pt.lsts.imc.state.ImcSysState |
getState() |
boolean |
getVisibility() |
void |
inDocument(org.dom4j.Document d) |
void |
inElement(org.dom4j.Element e) |
void |
init()
Empty implementation.
|
abstract void |
initSubPanel() |
boolean |
isFixedPosition() |
boolean |
isFixedSize() |
boolean |
isResizable() |
void |
mainVehicleChange(java.lang.String id)
If you need to react to main vehicle change override
#mainVehicleChangeNotification(String) instead. |
void |
onMessage(pt.lsts.neptus.messages.listener.MessageInfo arg0,
pt.lsts.imc.IMCMessage arg1) |
protected void |
parentResized(java.awt.Dimension oldSize,
java.awt.Dimension newSize) |
void |
parseXML(java.lang.String str) |
void |
post(java.lang.Object event)
Alias method to send console events
|
protected void |
recalculateRelativePosAndSize() |
void |
removeCheckMenuItem(java.lang.String itemPath) |
void |
removeMenuItem(java.lang.String itemPath) |
boolean |
send(pt.lsts.imc.IMCMessage message)
Send IMCMessage to Main System
|
boolean |
send(java.lang.String destination,
pt.lsts.imc.IMCMessage message)
Send IMCMessage
|
void |
sendViaIridium(java.lang.String destination,
pt.lsts.imc.IMCMessage message) |
protected void |
setEditMode(boolean b) |
void |
setFixedPosition(boolean fixedPosition) |
void |
setFixedSize(boolean fixedSize) |
protected void |
setPopupPosition(Popup.POSITION popupPosition) |
void |
setProperties(com.l2fprod.common.propertysheet.Property[] properties) |
void |
setResizable(boolean resizable) |
void |
setVisibility(boolean visibility)
Use this method to set the panel invisible (only visible at edition).
|
void |
XML_ChildsRead(org.dom4j.Element e) |
void |
XML_ChildsWrite(org.dom4j.Element e) |
void |
XML_PropertiesRead(org.dom4j.Element e) |
void |
XML_PropertiesWrite(org.dom4j.Element e) |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, 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, paint, 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, 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, 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 ConsolePanel(ConsoleLayout console)
protected final void activateComponents()
public javax.swing.JCheckBoxMenuItem addCheckMenuItem(java.lang.String itemPath,
javax.swing.ImageIcon icon,
CheckMenuChangeListener checkListener)
itemPath - The path to the menu item separated by ">". Examples: icon - The icon to be used in the menu item. actionListener - The CheckMenuChangeListener that will be warned on menu selection changesJCheckMenuItem or null if an error as occurrred.public javax.swing.JMenu addMenu(java.lang.String itemPath,
javax.swing.ImageIcon icon)
public javax.swing.JMenuItem addMenuItem(java.lang.String itemPath,
javax.swing.ImageIcon icon,
java.awt.event.ActionListener actionListener)
itemPath - The path to the menu item separated by ">". Examples: icon - The icon to be used in the menu item. actionListener - The ActionListener that will be warned on menu activationJMenuItem or null if an error as occurred.public org.dom4j.Document asDocument()
asDocument in interface XmlOutputMethodspublic org.dom4j.Document asDocument(java.lang.String rootElementName)
asDocument in interface XmlOutputMethodspublic org.dom4j.Element asElement()
asElement in interface XmlOutputMethodspublic org.dom4j.Element asElement(java.lang.String rootElementName)
asElement in interface XmlOutputMethodspublic java.lang.String asXML()
XmlOutputMethodsFileUtil.saveToFile(String, String) e afins. Isto porque ao gravar como UTF-8
os caracteres são adulterados guardando por exemplo "é" em 2 caracteres (ou seja pega nos dois caracteres UTF-8 e
transforma-os em 2 UTF-8s).asXML in interface XmlOutputMethodspublic java.lang.String asXML(java.lang.String rootElementName)
XmlOutputMethodsFileUtil.saveToFile(String, String) e afins. Isto porque ao gravar como UTF-8
os caracteres são adulterados guardando por exemplo "é" em 2 caracteres (ou seja pega nos dois caracteres UTF-8 e
transforma-os em 2 UTF-8s).asXML in interface XmlOutputMethodspublic void clean()
public abstract void cleanSubPanel()
protected final void deactivateComponents()
protected final ConsolePanel[] getChildren()
public final ConsoleLayout getConsole()
public java.lang.String getDescription()
public final boolean getEditMode()
public javax.swing.ImageIcon getImageIcon()
protected final MainPanel getMainpanel()
public java.lang.String getMainVehicleId()
public final java.lang.String getName()
getName in class java.awt.Componentpublic com.l2fprod.common.propertysheet.DefaultProperty[] getProperties()
getProperties in interface PropertiesProviderpublic final java.lang.String getPropertiesDialogTitle()
getPropertiesDialogTitle in interface PropertiesProviderpublic java.lang.String[] getPropertiesErrors(com.l2fprod.common.propertysheet.Property[] properties)
getPropertiesErrors in interface PropertiesProviderprotected final pt.lsts.imc.state.ImcSysState getState()
public boolean getVisibility()
public void inDocument(org.dom4j.Document d)
inDocument in interface XmlInOutMethodspublic void inElement(org.dom4j.Element e)
inElement in interface XmlInOutMethodspublic void init()
public abstract void initSubPanel()
public void parseXML(java.lang.String str)
parseXML in interface XmlInOutMethodspublic boolean isFixedPosition()
public boolean isFixedSize()
public boolean isResizable()
public final void mainVehicleChange(java.lang.String id)
#mainVehicleChangeNotification(String) instead.public final void onMessage(pt.lsts.neptus.messages.listener.MessageInfo arg0,
pt.lsts.imc.IMCMessage arg1)
onMessage in interface pt.lsts.neptus.messages.listener.MessageListener<pt.lsts.neptus.messages.listener.MessageInfo,pt.lsts.imc.IMCMessage>protected final void parentResized(java.awt.Dimension oldSize,
java.awt.Dimension newSize)
public void post(java.lang.Object event)
event - The Event to be posted to the console and forwarded to any subscribersSubscribeprotected final void recalculateRelativePosAndSize()
public void removeCheckMenuItem(java.lang.String itemPath)
public void removeMenuItem(java.lang.String itemPath)
public boolean send(pt.lsts.imc.IMCMessage message)
message - public void sendViaIridium(java.lang.String destination,
pt.lsts.imc.IMCMessage message)
public boolean send(java.lang.String destination,
pt.lsts.imc.IMCMessage message)
destination - message - protected void setEditMode(boolean b)
public void setFixedPosition(boolean fixedPosition)
public void setFixedSize(boolean fixedSize)
protected void setPopupPosition(Popup.POSITION popupPosition)
public void setProperties(com.l2fprod.common.propertysheet.Property[] properties)
setProperties in interface PropertiesProviderpublic void setResizable(boolean resizable)
public void setVisibility(boolean visibility)
visibility - Whether this panel is to be visible or not. Panels are always visible at edit timepublic void XML_ChildsRead(org.dom4j.Element e)
public void XML_ChildsWrite(org.dom4j.Element e)
public void XML_PropertiesRead(org.dom4j.Element e)
public void XML_PropertiesWrite(org.dom4j.Element e)
Copyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.