Class TLcdMS2525bObjectCustomizer
- All Implemented Interfaces:
ImageObserver,MenuContainer,Customizer,PropertyChangeListener,Serializable,EventListener,Accessible
ILcdEditableMS2525bCoded instances.
By default, it contains functionality to customize/view the following properties of a symbol: hierarchy, affiliation, echelon, order of battle, status, country, display options and text modifiers. For each property, a separate child customizer is used; these customizers are marked by a unique ID:
- Affiliation property:
TLcdMS2525bObjectCustomizer.AFFILIATION_CUSTOMIZER - Status property:
TLcdMS2525bObjectCustomizer.STATUS_CUSTOMIZER - ...
This customizer can be adapted: child customizers can be removed/replaced and the layout can be customized. The following methods can be overridden to achieve this:
createCustomizer(int aID): this method is used to create a particular child customizer (based on its unique ID). It is invoked for all available ID's.insertCustomizers(int aID[], Customizer aCustomizer[]): this method is used to build the layout of this general customizer, based on which child customizers are present. It is invoked after allcreateCustomizer(int aID)calls.
This customizer implementation automatically adapts to the symbology standard used for the set object, according to the following general rules applied by the Luciad MIL-STD 2525 API:
- If the object is of type
TLcdEditableMS2525bObject, the symbology standard is retrieved throughTLcdEditableMS2525bObject.getMS2525Standard(), - For all other implementations of
ILcdEditableMS2525bCoded, the symbology standard is based upon the boolean System propertycom.luciad.symbology.milstd2525b.ms2525c.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumIndicates the type of the filter used by this customizerNested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanelNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier for the affiliation customizer.static final intIdentifier for the country customizer.static final intIdentifier for the display option customizer.static final intIdentifier for the echelon customizer.static final intIdentifier for the hierarchy customizer.static final intIdentifier for the customizer that displays the symbology code.static final intIdentifier for the order of battle customizer.static final intIdentifier for the customizer that displays a preview of the symbol.static final StringWhen the MS2525b code is changed in the customizer a PROPERTY_MS2525B_CODE_CHANGED event is passed to the property change listenersstatic final StringWhen the MS2525b hierarchy is changed in the customizer, a PROPERTY_MS2525B_HIERARCHY_CHANGED event is passed to the property change listeners.static final StringWhen the MS2525b style (the outlining property) is changed in the customizer a PROPERTY_MS2525B_STYLE_CHANGED event is passed to the property change listenersstatic final StringWhen one or more text modifiers are changed in the customizer a PROPERTY_MS2525B_TEXT_MODIFIERS_CHANGED event is passed to the property change listeners.static final StringWhen the selection in the customizer is valid, a PROPERTY_SELECTION_OK event is passed to the property change listenersstatic final intIdentifier for the status customizer.static final intIdentifier for the customizer ofILcdMS2525bCoded.sAdditionalInformation.static final intIdentifier for the customizer ofILcdMS2525bCoded.sAltitudeDepth.static final intIdentifier for the customizer ofILcdMS2525bCoded.sCombatEffectiveness.static final intIdentifier for the customizer ofILcdMS2525bCoded.sDateTimeGroup.static final intIdentifier for the customizer ofILcdMS2525bCoded.sEffectiveTime.static final intIdentifier for the customizer ofILcdMS2525bCoded.sEvaluationRating.static final intIdentifier for the customizer ofILcdMS2525bCoded.sHigherFormation.static final intIdentifier for the customizer ofILcdMS2525bCoded.sIFFSIF.static final intIdentifier for the customizer ofILcdMS2525bCoded.sMovementDirection.static final intIdentifier for the customizer ofILcdMS2525bCoded.sQuantity.static final intIdentifier for the customizer ofILcdMS2525bCoded.sReinforcedOrReduced.static final intIdentifier for the customizer ofILcdMS2525bCoded.sSignatureEquipment.static final intIdentifier for the customizer ofILcdMS2525bCoded.sSpeedLabel.static final intIdentifier for the customizer ofILcdMS2525bCoded.sStaffComments.static final intIdentifier for the customizer ofILcdMS2525bCoded.sTypeLabel.static final intIdentifier for the customizer ofILcdMS2525bCoded.sUniqueDesignation.Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newTLcdMS2525bObjectCustomizerobject.TLcdMS2525bObjectCustomizer(boolean aEnablePointFilter) Creates a newTLcdMS2525bObjectCustomizerobject optionally enabled with a hierarchy filter that only allows to use point-based symbology.TLcdMS2525bObjectCustomizer(boolean aEnablePointFilter, ILcdStringTranslator aStringTranslator) Creates a newTLcdMS2525bObjectCustomizerobject optionally enabled with a hierarchy filter that only allows to use point-based symbology, and anILcdStringTranslator.TLcdMS2525bObjectCustomizer(ILcdFilter aFilter) Creates a newTLcdMS2525bObjectCustomizerobject with a hierarchy filter.TLcdMS2525bObjectCustomizer(ILcdFilter aFilter, TLcdMS2525bObjectCustomizer.FilterType aFilterType, ILcdStringTranslator aStringTranslator) Creates a newTLcdMS2525bObjectCustomizerobject with a hierarchy filter and anILcdStringTranslator.TLcdMS2525bObjectCustomizer(ILcdFilter aFilter, ILcdStringTranslator aStringTranslator) Creates a newTLcdMS2525bObjectCustomizerobject with a hierarchy filter and anILcdStringTranslator.TLcdMS2525bObjectCustomizer(ILcdStringTranslator aStringTranslator) Creates a newTLcdMS2525bObjectCustomizerobject with anILcdStringTranslator. -
Method Summary
Modifier and TypeMethodDescriptionprotected CustomizercreateCustomizer(int aID) Creates a child customizer for the property that is identified by the given ID.protected ILcdFilterReturns the filter that is to be used in the hierarchy customizer.Returns the object that is currently set to this customizer.protected ILcdFilterReturns the filter that is to be used in the customizer.protected voidinsertCustomizers(int[] aID, Customizer[] aCustomizer) Inserts and layouts the given child customizers into this customizer.booleanReturns true when the current selection in the customizer is valid.voidpropertyChange(PropertyChangeEvent aEvent) voidsetEnabled(boolean aEnabled) voidThe object to customize.Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIMethods inherited from class javax.swing.JComponent
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, 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, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateMethods inherited from class java.awt.Container
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, validateTreeMethods inherited from class java.awt.Component
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, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.beans.Customizer
addPropertyChangeListener, removePropertyChangeListener
-
Field Details
-
AFFILIATION_CUSTOMIZER
public static final int AFFILIATION_CUSTOMIZERIdentifier for the affiliation customizer.- See Also:
-
STATUS_CUSTOMIZER
public static final int STATUS_CUSTOMIZERIdentifier for the status customizer.- See Also:
-
COUNTRY_CUSTOMIZER
public static final int COUNTRY_CUSTOMIZERIdentifier for the country customizer.- See Also:
-
ORDEROFBATTLE_CUSTOMIZER
public static final int ORDEROFBATTLE_CUSTOMIZERIdentifier for the order of battle customizer.- See Also:
-
DISPLAY_OPTION_CUSTOMIZER
public static final int DISPLAY_OPTION_CUSTOMIZERIdentifier for the display option customizer.- See Also:
-
INFORMATION_CUSTOMIZER
public static final int INFORMATION_CUSTOMIZERIdentifier for the customizer that displays the symbology code.- See Also:
-
PREVIEW_CUSTOMIZER
public static final int PREVIEW_CUSTOMIZERIdentifier for the customizer that displays a preview of the symbol.- See Also:
-
ECHELON_CUSTOMIZER
public static final int ECHELON_CUSTOMIZERIdentifier for the echelon customizer.- See Also:
-
HIERARCHY_CUSTOMIZER
public static final int HIERARCHY_CUSTOMIZERIdentifier for the hierarchy customizer.- See Also:
-
TEXT_MODIFIER_UNIQUE_DESIGNATION_CUSTOMIZER
public static final int TEXT_MODIFIER_UNIQUE_DESIGNATION_CUSTOMIZERIdentifier for the customizer ofILcdMS2525bCoded.sUniqueDesignation.- See Also:
-
TEXT_MODIFIER_HIGHER_FORMATION_CUSTOMIZER
public static final int TEXT_MODIFIER_HIGHER_FORMATION_CUSTOMIZERIdentifier for the customizer ofILcdMS2525bCoded.sHigherFormation.- See Also:
-
TEXT_MODIFIER_DATE_TIME_GROUP_CUSTOMIZER
public static final int TEXT_MODIFIER_DATE_TIME_GROUP_CUSTOMIZERIdentifier for the customizer ofILcdMS2525bCoded.sDateTimeGroup.- See Also:
-
TEXT_MODIFIER_STAFF_COMMENTS_CUSTOMIZER
public static final int TEXT_MODIFIER_STAFF_COMMENTS_CUSTOMIZERIdentifier for the customizer ofILcdMS2525bCoded.sStaffComments.- See Also:
-
TEXT_MODIFIER_ADDITIONAL_INFORMATION_CUSTOMIZER
public static final int TEXT_MODIFIER_ADDITIONAL_INFORMATION_CUSTOMIZERIdentifier for the customizer ofILcdMS2525bCoded.sAdditionalInformation.- See Also:
-
TEXT_MODIFIER_QUANTITY_CUSTOMIZER
public static final int TEXT_MODIFIER_QUANTITY_CUSTOMIZERIdentifier for the customizer ofILcdMS2525bCoded.sQuantity.- See Also:
-
TEXT_MODIFIER_REINFORCED_OR_REDUCED_CUSTOMIZER
public static final int TEXT_MODIFIER_REINFORCED_OR_REDUCED_CUSTOMIZERIdentifier for the customizer ofILcdMS2525bCoded.sReinforcedOrReduced.- See Also:
-
TEXT_MODIFIER_EVALUATION_RATING_CUSTOMIZER
public static final int TEXT_MODIFIER_EVALUATION_RATING_CUSTOMIZERIdentifier for the customizer ofILcdMS2525bCoded.sEvaluationRating.- See Also:
-
TEXT_MODIFIER_COMBAT_EFFECTIVENESS_CUSTOMIZER
public static final int TEXT_MODIFIER_COMBAT_EFFECTIVENESS_CUSTOMIZERIdentifier for the customizer ofILcdMS2525bCoded.sCombatEffectiveness.- See Also:
-
TEXT_MODIFIER_SIGNATURE_EQUIPMENT_CUSTOMIZER
public static final int TEXT_MODIFIER_SIGNATURE_EQUIPMENT_CUSTOMIZERIdentifier for the customizer ofILcdMS2525bCoded.sSignatureEquipment.- See Also:
-
TEXT_MODIFIER_IFFSIF_CUSTOMIZER
public static final int TEXT_MODIFIER_IFFSIF_CUSTOMIZERIdentifier for the customizer ofILcdMS2525bCoded.sIFFSIF.- See Also:
-
TEXT_MODIFIER_MOVEMENT_DIRECTION_CUSTOMIZER
public static final int TEXT_MODIFIER_MOVEMENT_DIRECTION_CUSTOMIZERIdentifier for the customizer ofILcdMS2525bCoded.sMovementDirection.- See Also:
-
TEXT_MODIFIER_TYPE_CUSTOMIZER
public static final int TEXT_MODIFIER_TYPE_CUSTOMIZERIdentifier for the customizer ofILcdMS2525bCoded.sTypeLabel.- See Also:
-
TEXT_MODIFIER_ALTITUDE_DEPTH_CUSTOMIZER
public static final int TEXT_MODIFIER_ALTITUDE_DEPTH_CUSTOMIZERIdentifier for the customizer ofILcdMS2525bCoded.sAltitudeDepth.- See Also:
-
TEXT_MODIFIER_SPEED_CUSTOMIZER
public static final int TEXT_MODIFIER_SPEED_CUSTOMIZERIdentifier for the customizer ofILcdMS2525bCoded.sSpeedLabel.- See Also:
-
TEXT_MODIFIER_EFFECTIVE_TIME_CUSTOMIZER
public static final int TEXT_MODIFIER_EFFECTIVE_TIME_CUSTOMIZERIdentifier for the customizer ofILcdMS2525bCoded.sEffectiveTime.- See Also:
-
PROPERTY_SELECTION_OK
When the selection in the customizer is valid, a PROPERTY_SELECTION_OK event is passed to the property change listeners- See Also:
-
PROPERTY_MS2525B_CODE_CHANGED
When the MS2525b code is changed in the customizer a PROPERTY_MS2525B_CODE_CHANGED event is passed to the property change listeners- See Also:
-
PROPERTY_MS2525B_HIERARCHY_CHANGED
When the MS2525b hierarchy is changed in the customizer, a PROPERTY_MS2525B_HIERARCHY_CHANGED event is passed to the property change listeners.- See Also:
-
PROPERTY_MS2525B_STYLE_CHANGED
When the MS2525b style (the outlining property) is changed in the customizer a PROPERTY_MS2525B_STYLE_CHANGED event is passed to the property change listeners- See Also:
-
PROPERTY_MS2525B_TEXT_MODIFIERS_CHANGED
When one or more text modifiers are changed in the customizer a PROPERTY_MS2525B_TEXT_MODIFIERS_CHANGED event is passed to the property change listeners. Since more than one modifier might have changed, no old or new values are provided in the change event.- See Also:
-
-
Constructor Details
-
TLcdMS2525bObjectCustomizer
public TLcdMS2525bObjectCustomizer()Creates a newTLcdMS2525bObjectCustomizerobject. -
TLcdMS2525bObjectCustomizer
public TLcdMS2525bObjectCustomizer(boolean aEnablePointFilter) Creates a newTLcdMS2525bObjectCustomizerobject optionally enabled with a hierarchy filter that only allows to use point-based symbology.- Parameters:
aEnablePointFilter- whether a hierarchy filter should be enabled that only allows to use point-based symbology
-
TLcdMS2525bObjectCustomizer
Creates a newTLcdMS2525bObjectCustomizerobject with a hierarchy filter. The filter determines which symbols should be available in the customizer.- Parameters:
aFilter- AnILcdFilterinstance that determines which symbols should be available in the hierarchy tree. The objects that the filter will receive are of typeString, representing the hierarchy of a particular symbol (e.g. "1.X.1.1"). If null, no filter will be used.
-
TLcdMS2525bObjectCustomizer
Creates a newTLcdMS2525bObjectCustomizerobject with anILcdStringTranslator. ThisILcdStringTranslatorcan be used for translating the text from the labels that are present in the user interface.The
translate(String)method inILcdStringTranslatorwill be invoked for the followingStringobjects:- Affiliation
- Status
- Country
- Order of battle
- Frame
- Fill
- Icon
- Echelon
- Domains
- Name
- Name of superior
- Date/time
- Chief's commentary
- Complementary information
- Number
- Reinforcement
- Evaluation rating
- Combat efficiency
- Signature
- IFF/SIF
- Movement direction/azimuth
- Type
- Altitude/depth
- Speed
- Effective date/time
- Graphics
- Text
- Parameters:
aStringTranslator- anILcdStringTranslatorfor translating text. If null, no translator will be used.
-
TLcdMS2525bObjectCustomizer
public TLcdMS2525bObjectCustomizer(boolean aEnablePointFilter, ILcdStringTranslator aStringTranslator) Creates a newTLcdMS2525bObjectCustomizerobject optionally enabled with a hierarchy filter that only allows to use point-based symbology, and anILcdStringTranslator. TheILcdStringTranslatorcan be used for translating the text from the labels that are present in the user interface.- Parameters:
aEnablePointFilter- whether a hierarchy filter should be enabled that only allows to use point-based symbologyaStringTranslator- anILcdStringTranslatorfor translating text. If null, no translator will be used.
-
TLcdMS2525bObjectCustomizer
public TLcdMS2525bObjectCustomizer(ILcdFilter aFilter, TLcdMS2525bObjectCustomizer.FilterType aFilterType, ILcdStringTranslator aStringTranslator) Creates a newTLcdMS2525bObjectCustomizerobject with a hierarchy filter and anILcdStringTranslator. The filter determines which symbols should be available in the customizer. TheILcdStringTranslatorcan be used for translating the text from the labels that are present in the user interface. SeeTLcdMS2525bObjectCustomizer(ILcdStringTranslator)for a list of values for which the translator will be used.- Parameters:
aFilter- AnILcdFilterinstance that determines which symbols should be available in the hierarchy tree. The objects that the filter will receive are of typeString, representing the hierarchy or text representation of a particular symbol (e.g. "1.X.1.1" or "WO-DIDID---L---") according toaFilterType. If null, no filter will be used.aFilterType- determines the type of the filter. Hierarchy or SIDCaStringTranslator- anILcdStringTranslatorfor translating text. If null, no translator will be used.
-
TLcdMS2525bObjectCustomizer
Creates a newTLcdMS2525bObjectCustomizerobject with a hierarchy filter and anILcdStringTranslator. The filter determines which symbols should be available in the customizer. TheILcdStringTranslatorcan be used for translating the text from the labels that are present in the user interface. SeeTLcdMS2525bObjectCustomizer(ILcdStringTranslator)for a list of values for which the translator will be used.- Parameters:
aFilter- AnILcdFilterinstance that determines which symbols should be available in the hierarchy tree. The objects that the filter will receive are of typeString, representing the hierarchy of a particular symbol (e.g. "1.X.1.1"). If null, no filter will be used.aStringTranslator- anILcdStringTranslatorfor translating text. If null, no translator will be used.
-
-
Method Details
-
setEnabled
public void setEnabled(boolean aEnabled) - Overrides:
setEnabledin classJComponent
-
setObject
The object to customize. This should be an instance ofILcdEditableMS2525bCoded. To be able to use style-related customizers, it should also implement theILcdMS2525bStyledinterface,- Specified by:
setObjectin interfaceCustomizer- Parameters:
aObject- The object to customize. This should be an instance ofILcdEditableMS2525bCodedand optionally also an instance ofILcdMS2525bStyled.- Throws:
IllegalArgumentException- when the supplied object is null, doesn't implementILcdEditableMS2525bCodedor isn't a valid MIL-STD 2525b code.
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
getObject
Returns the object that is currently set to this customizer. This is always an implementation ofILcdEditableMS2525bCoded. -
isSelectionOk
public boolean isSelectionOk()Returns true when the current selection in the customizer is valid. -
createCustomizer
Creates a child customizer for the property that is identified by the given ID. The possible ID's are the static integer members of this class ending with CUSTOMIZER.This method can be overridden to create an own customizer for the given ID or to prevent its default customizer from being displayed by returning null.
Each customizer that is not null should comply with the following conditions:
- The customizer should implement
(next to the
Customizerinterface) thePropertyChangeListenerinterface. - The customizer should inherit fom
JComponent, as it will be displayed in the GUI. - The customizer should be registered as a property change listener on
this
TLcdMS2525bObjectCustomizerinstance. - This
TLcdMS2525bObjectCustomizerinstance should be registered as a property change listener on the customizer.
- Parameters:
aID- The unique ID of a customizable property.- Returns:
- A customizer for the property that is identified by the aID argument.
- The customizer should implement
(next to the
-
insertCustomizers
Inserts and layouts the given child customizers into this customizer.This method can be overridden to implement a custom layout. The given
Customizerarray contains all the child customizers that are created usingcreateCustomizer(int)and that are not null. These customizers are alsoJComponentextensions. The integer array contains the corresponding identifiers.- Parameters:
aID- The corresponding identifiers for the customizer array aCustomizer.aCustomizer- The child customizers that must be layouted in this general customizer. Each customizer is also aJComponent.- See Also:
-
getHierarchyFilter
Returns the filter that is to be used in the hierarchy customizer. The tree will only show symbols passing the filter. The objects that the filter will receive are of typeString, representing the hierarchy of a particular symbol (e.g. "1.X.1.1").- Returns:
- the filter that is to be used in the hierarchy customizer, or null if no filter is used
-
getSIDCFilter
Returns the filter that is to be used in the customizer. The tree will only show symbols passing the filter. The objects that the filter will receive are of typeString, representing the SIDC of a particular symbol- Returns:
- the filter that is to be used in the customizer, or null if no filter is used
-