Class TLcdAPP6AObjectCustomizer
- All Implemented Interfaces:
ImageObserver
,MenuContainer
,Customizer
,PropertyChangeListener
,Serializable
,EventListener
,Accessible
ILcdEditableAPP6ACoded
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:
TLcdAPP6AObjectCustomizer.AFFILIATION_CUSTOMIZER
- Status property:
TLcdAPP6AObjectCustomizer.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 APP-6 API:
- If the object is of type
TLcdEditableAPP6AObject
, the symbology standard is retrieved throughTLcdEditableAPP6AObject.getAPP6Standard()
, - For all other implementations of
ILcdEditableAPP6ACoded
, the symbology standard is based upon the boolean System propertycom.luciad.symbology.app6a.app6b
.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Indicates the type of the filter used by this customizerNested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier for the affiliation customizer.static final int
Identifier for the country customizer.static final int
Identifier for the display option customizer.static final int
Identifier for the echelon customizer.static final int
Identifier for the hierarchy customizer.static final int
Identifier for the customizer that displays the symbology code.static final int
Identifier for the order of battle customizer.static final int
Identifier for the customizer that displays a preview of the symbol.static final String
When the APP-6A code is changed in the customizer, a PROPERTY_APP6A_CODE_CHANGED event is passed to the property change listeners.static final String
When the APP-6A hierarchy is changed in the customizer, a PROPERTY_APP6A_HIERARCHY_CHANGED event is passed to the property change listeners.static final String
When the APP-6A style (the outlining property) is changed in the customizer a PROPERTY_APP6A_STYLE_CHANGED event is passed to the property change listeners.static final String
When one or more text modifiers are changed in the customizer, a PROPERTY_APP6A_TEXT_MODIFIERS_CHANGED event is passed to the property change listeners.static final String
When the selection in the customizer is valid, a PROPERTY_SELECTION_OK event is passed to the property change listeners.static final int
Identifier for the status customizer.static final int
Identifier for the customizer ofILcdAPP6ACoded.sAdditionalInformation
.static final int
Identifier for the customizer ofILcdAPP6ACoded.sAltitudeDepth
.static final int
Identifier for the customizer ofILcdAPP6ACoded.sCombatEffectiveness
.static final int
Identifier for the customizer ofILcdAPP6ACoded.sDateTimeGroup
.static final int
Identifier for the customizer ofILcdAPP6ACoded.sEffectiveTime
.static final int
Identifier for the customizer ofILcdAPP6ACoded.sEvaluationRating
.static final int
Identifier for the customizer ofILcdAPP6ACoded.sHigherFormation
.static final int
Identifier for the customizer ofILcdAPP6ACoded.sIFFSIF
.static final int
Identifier for the customizer ofILcdAPP6ACoded.sMovementDirection
.static final int
Identifier for the customizer ofILcdAPP6ACoded.sQuantityOfEquipment
.static final int
Identifier for the customizer ofIILcdAPP6ACoded.sReinforcedOrReduced
.static final int
Identifier for the customizer ofILcdAPP6ACoded.sSignatureEquipment
.static final int
Identifier for the customizer ofILcdAPP6ACoded.sSpeedLabel
.static final int
Identifier for the customizer ofILcdAPP6ACoded.sStaffComments
.static final int
Identifier for the customizer ofILcdAPP6ACoded.sTypeOfEquipment
.static final int
Identifier for the customizer ofILcdAPP6ACoded.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_WINDOW
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
Constructor Summary
ConstructorDescriptionCreates a newTLcdAPP6AObjectCustomizer
object.TLcdAPP6AObjectCustomizer
(boolean aEnablePointFilter) Creates a newTLcdAPP6AObjectCustomizer
object optionally enabled with a hierarchy filter that only allows to use point-based symbology.TLcdAPP6AObjectCustomizer
(boolean aEnablePointFilter, ILcdStringTranslator aStringTranslator) Creates a newTLcdAPP6AObjectCustomizer
object optionally enabled with a hierarchy filter that only allows to use point-based symbology, and anILcdStringTranslator
.TLcdAPP6AObjectCustomizer
(ILcdFilter aFilter) Creates a newTLcdAPP6AObjectCustomizer
object with a hierarchy filter.TLcdAPP6AObjectCustomizer
(ILcdFilter aFilter, TLcdAPP6AObjectCustomizer.FilterType aFilterType, ILcdStringTranslator aStringTranslator) Creates a newTLcdAPP6AObjectCustomizer
object with a hierarchy filter and anILcdStringTranslator
.TLcdAPP6AObjectCustomizer
(ILcdFilter aFilter, ILcdStringTranslator aStringTranslator) Creates a newTLcdAPP6AObjectCustomizer
object with a hierarchy filter and anILcdStringTranslator
.TLcdAPP6AObjectCustomizer
(ILcdStringTranslator aStringTranslator) Creates a newTLcdAPP6AObjectCustomizer
object with anILcdStringTranslator
. -
Method Summary
Modifier and TypeMethodDescriptionprotected Customizer
createCustomizer
(int aID) Creates a child customizer for the property that is identified by the given ID.protected ILcdFilter
Returns the filter that is to be used in the hierarchy customizer.Returns the object that is currently set to this customizer.protected ILcdFilter
Returns the filter that is to be used in the customizer.protected void
insertCustomizers
(int[] aID, Customizer[] aCustomizer) Inserts and layouts the given child customizers into this customizer.boolean
Returns true when the current selection in the customizer is valid.void
propertyChange
(PropertyChangeEvent aEvent) void
setEnabled
(boolean aEnabled) void
The object to customize.Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
Methods 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, update
Methods 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, validateTree
Methods 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, transferFocusUpCycle
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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 ofILcdAPP6ACoded.sUniqueDesignation
.- See Also:
-
TEXT_MODIFIER_HIGHER_FORMATION_CUSTOMIZER
public static final int TEXT_MODIFIER_HIGHER_FORMATION_CUSTOMIZERIdentifier for the customizer ofILcdAPP6ACoded.sHigherFormation
.- See Also:
-
TEXT_MODIFIER_DATE_TIME_GROUP_CUSTOMIZER
public static final int TEXT_MODIFIER_DATE_TIME_GROUP_CUSTOMIZERIdentifier for the customizer ofILcdAPP6ACoded.sDateTimeGroup
.- See Also:
-
TEXT_MODIFIER_STAFF_COMMENTS_CUSTOMIZER
public static final int TEXT_MODIFIER_STAFF_COMMENTS_CUSTOMIZERIdentifier for the customizer ofILcdAPP6ACoded.sStaffComments
.- See Also:
-
TEXT_MODIFIER_ADDITIONAL_INFORMATION_CUSTOMIZER
public static final int TEXT_MODIFIER_ADDITIONAL_INFORMATION_CUSTOMIZERIdentifier for the customizer ofILcdAPP6ACoded.sAdditionalInformation
.- See Also:
-
TEXT_MODIFIER_QUANTITY_OF_EQUIPMENT_CUSTOMIZER
public static final int TEXT_MODIFIER_QUANTITY_OF_EQUIPMENT_CUSTOMIZERIdentifier for the customizer ofILcdAPP6ACoded.sQuantityOfEquipment
.- See Also:
-
TEXT_MODIFIER_REINFORCED_OR_REDUCED_CUSTOMIZER
public static final int TEXT_MODIFIER_REINFORCED_OR_REDUCED_CUSTOMIZERIdentifier for the customizer ofIILcdAPP6ACoded.sReinforcedOrReduced
.- See Also:
-
TEXT_MODIFIER_EVALUATION_RATING_CUSTOMIZER
public static final int TEXT_MODIFIER_EVALUATION_RATING_CUSTOMIZERIdentifier for the customizer ofILcdAPP6ACoded.sEvaluationRating
.- See Also:
-
TEXT_MODIFIER_COMBAT_EFFECTIVENESS_CUSTOMIZER
public static final int TEXT_MODIFIER_COMBAT_EFFECTIVENESS_CUSTOMIZERIdentifier for the customizer ofILcdAPP6ACoded.sCombatEffectiveness
.- See Also:
-
TEXT_MODIFIER_SIGNATURE_EQUIPMENT_CUSTOMIZER
public static final int TEXT_MODIFIER_SIGNATURE_EQUIPMENT_CUSTOMIZERIdentifier for the customizer ofILcdAPP6ACoded.sSignatureEquipment
.- See Also:
-
TEXT_MODIFIER_IFFSIF_CUSTOMIZER
public static final int TEXT_MODIFIER_IFFSIF_CUSTOMIZERIdentifier for the customizer ofILcdAPP6ACoded.sIFFSIF
.- See Also:
-
TEXT_MODIFIER_MOVEMENT_DIRECTION_CUSTOMIZER
public static final int TEXT_MODIFIER_MOVEMENT_DIRECTION_CUSTOMIZERIdentifier for the customizer ofILcdAPP6ACoded.sMovementDirection
.- See Also:
-
TEXT_MODIFIER_TYPE_OF_EQUIPMENT_CUSTOMIZER
public static final int TEXT_MODIFIER_TYPE_OF_EQUIPMENT_CUSTOMIZERIdentifier for the customizer ofILcdAPP6ACoded.sTypeOfEquipment
.- See Also:
-
TEXT_MODIFIER_ALTITUDE_DEPTH_CUSTOMIZER
public static final int TEXT_MODIFIER_ALTITUDE_DEPTH_CUSTOMIZERIdentifier for the customizer ofILcdAPP6ACoded.sAltitudeDepth
.- See Also:
-
TEXT_MODIFIER_SPEED_CUSTOMIZER
public static final int TEXT_MODIFIER_SPEED_CUSTOMIZERIdentifier for the customizer ofILcdAPP6ACoded.sSpeedLabel
.- See Also:
-
TEXT_MODIFIER_EFFECTIVE_TIME_CUSTOMIZER
public static final int TEXT_MODIFIER_EFFECTIVE_TIME_CUSTOMIZERIdentifier for the customizer ofILcdAPP6ACoded.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_APP6A_CODE_CHANGED
When the APP-6A code is changed in the customizer, a PROPERTY_APP6A_CODE_CHANGED event is passed to the property change listeners.- See Also:
-
PROPERTY_APP6A_HIERARCHY_CHANGED
When the APP-6A hierarchy is changed in the customizer, a PROPERTY_APP6A_HIERARCHY_CHANGED event is passed to the property change listeners.- See Also:
-
PROPERTY_APP6A_STYLE_CHANGED
When the APP-6A style (the outlining property) is changed in the customizer a PROPERTY_APP6A_STYLE_CHANGED event is passed to the property change listeners.- See Also:
-
PROPERTY_APP6A_TEXT_MODIFIERS_CHANGED
When one or more text modifiers are changed in the customizer, a PROPERTY_APP6A_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
-
TLcdAPP6AObjectCustomizer
public TLcdAPP6AObjectCustomizer()Creates a newTLcdAPP6AObjectCustomizer
object. -
TLcdAPP6AObjectCustomizer
public TLcdAPP6AObjectCustomizer(boolean aEnablePointFilter) Creates a newTLcdAPP6AObjectCustomizer
object 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
-
TLcdAPP6AObjectCustomizer
Creates a newTLcdAPP6AObjectCustomizer
object with a hierarchy filter. The filter determines which symbols should be available in the customizer.- Parameters:
aFilter
- AnILcdFilter
instance 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.
-
TLcdAPP6AObjectCustomizer
Creates a newTLcdAPP6AObjectCustomizer
object with anILcdStringTranslator
. ThisILcdStringTranslator
can be used for translating the text from the labels that are present in the user interface.The
translate(String)
method inILcdStringTranslator
will be invoked for the followingString
objects:- 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
- anILcdStringTranslator
for translating text. If null, no translator will be used.
-
TLcdAPP6AObjectCustomizer
public TLcdAPP6AObjectCustomizer(boolean aEnablePointFilter, ILcdStringTranslator aStringTranslator) Creates a newTLcdAPP6AObjectCustomizer
object optionally enabled with a hierarchy filter that only allows to use point-based symbology, and anILcdStringTranslator
. TheILcdStringTranslator
can 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
- anILcdStringTranslator
for translating text. If null, no translator will be used.
-
TLcdAPP6AObjectCustomizer
public TLcdAPP6AObjectCustomizer(ILcdFilter aFilter, TLcdAPP6AObjectCustomizer.FilterType aFilterType, ILcdStringTranslator aStringTranslator) Creates a newTLcdAPP6AObjectCustomizer
object with a hierarchy filter and anILcdStringTranslator
. The filter determines which symbols should be available in the customizer. TheILcdStringTranslator
can be used for translating the text from the labels that are present in the user interface. SeeTLcdAPP6AObjectCustomizer(ILcdStringTranslator)
for a list of values for which the translator will be used.- Parameters:
aFilter
- AnILcdFilter
instance 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
- anILcdStringTranslator
for translating text. If null, no translator will be used.
-
TLcdAPP6AObjectCustomizer
Creates a newTLcdAPP6AObjectCustomizer
object with a hierarchy filter and anILcdStringTranslator
. The filter determines which symbols should be available in the customizer. TheILcdStringTranslator
can be used for translating the text from the labels that are present in the user interface. SeeTLcdAPP6AObjectCustomizer(ILcdStringTranslator)
for a list of values for which the translator will be used.- Parameters:
aFilter
- AnILcdFilter
instance 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
- anILcdStringTranslator
for translating text. If null, no translator will be used.
-
-
Method Details
-
setEnabled
public void setEnabled(boolean aEnabled) - Overrides:
setEnabled
in classJComponent
-
setObject
The object to customize. This should be an instance ofILcdEditableAPP6ACoded
. To be able to use style-related customizers, it should also implement theILcdAPP6AStyled
interface,- Specified by:
setObject
in interfaceCustomizer
- Parameters:
aObject
- The object to customize. This should be an instance ofILcdEditableAPP6ACoded
and optionally also an instance ofILcdAPP6AStyled
.- Throws:
IllegalArgumentException
- when the supplied object is null, doesn't implementILcdEditableAPP6ACoded
or isn't a valid APP-6 code.
-
getObject
Returns the object that is currently set to this customizer. This is always an implementation ofILcdEditableAPP6ACoded
. -
isSelectionOk
public boolean isSelectionOk()Returns true when the current selection in the customizer is valid. -
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
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
Customizer
interface) thePropertyChangeListener
interface. - 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
TLcdAPP6AObjectCustomizer
instance. - This
TLcdAPP6AObjectCustomizer
instance 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
Customizer
array contains all the child customizers that are created usingcreateCustomizer(int)
and that are not null. These customizers are alsoJComponent
extensions. 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
-