public class TLcdDAFIFLoader extends JPanel
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
TLcdDAFIFLoader(String aDAFIFRoot)
Create a new loader panel instance.
|
TLcdDAFIFLoader(String aDAFIFRoot,
String aDecoderConfigFile,
ALcdAISObjectFactory aDomainFactory)
Deprecated.
|
TLcdDAFIFLoader(String aDAFIFRoot,
String aDecoderConfigFile,
ALcdAISObjectFactory aDomainFactory,
boolean aEnableSubTypeFiltering)
Deprecated.
|
TLcdDAFIFLoader(String aDAFIFRoot,
String aDecoderConfigFile,
ALcdAISObjectFactory aDomainFactory,
boolean aEnableSubTypeFiltering,
ILcdStringTranslator aTranslator)
Deprecated.
|
TLcdDAFIFLoader(String aDAFIFRoot,
String aDecoderConfigFile,
TLcdAISDataObjectFactory aDomainFactory)
Create a new loader panel instance with the given arguments..
|
TLcdDAFIFLoader(String aDAFIFRoot,
String aDecoderConfigFile,
TLcdAISDataObjectFactory aDomainFactory,
boolean aEnableSubTypeFiltering)
Create a new loader panel instance with the given arguments.
|
TLcdDAFIFLoader(String aDAFIFRoot,
String aDecoderConfigFile,
TLcdAISDataObjectFactory aDomainFactory,
boolean aEnableSubTypeFiltering,
ILcdStringTranslator aTranslator)
Create a new loader panel instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addDAFIFLoaderListener(ILcdDAFIFLoaderListener aListener)
Adds an
ILcdDAFIFLoaderListener to all DAFIF loaders used by this instance. |
void |
addStatusListener(ILcdStatusListener aListener)
Adds an
ILcdStatusListener to all DAFIF loaders used by this instance. |
void |
dispose()
Remove all currently loaded data and prepares the loader for being garbage collected.
|
TLcdDAFIFRegionChooser |
getDAFIFRegionChooser()
Returns the region chooser panel.
|
TLcdDAFIFTypeLoader |
getDAFIFTypeLoader(int index)
Returns the DAFIF type loader at the specified index.
|
int |
getDAFIFTypeLoaderCount()
Returns the number of type loaders that exist within this DAFIF loader.
|
Object |
getLoaderLock()
All threads needing to synchronize access to the DAFIFLoader should use this lock.
|
String[] |
getSelectedSubTypes(String aType)
Returns the checked subTypes for a given type.
|
String[] |
getSelectedTypes()
Returns the checked types.
|
static boolean |
isClassTraceOn()
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
void |
modelRemovedExternally(ILcdModel aModel)
Signals that the given model has been removed by an external cause and that the
current status of all DAFIF loaders should be updated.
|
void |
removeDAFIFLoaderListener(ILcdDAFIFLoaderListener aListener)
Removes the specified DAFIF loader listener.
|
void |
removeStatusListener(ILcdStatusListener aListener)
Removes the specified status listener.
|
static void |
setClassTraceOn(boolean aClassTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
void |
setEnabled(boolean enabled) |
void |
setSelectedSubTypes(String aType,
String[] aSubTypes)
Sets the selected subtypes for a given type.
|
void |
setSelectedTypes(String[] aTypes)
Sets the specified types active.
|
void |
update()
Updates the panel with data from the DAFIF source directory.
|
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, 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
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
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, 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 TLcdDAFIFLoader(String aDAFIFRoot)
aDAFIFRoot
- The source path for reading DAFIF data (split into regions).@Deprecated public TLcdDAFIFLoader(String aDAFIFRoot, String aDecoderConfigFile, ALcdAISObjectFactory aDomainFactory)
aDAFIFRoot
- The source path for reading DAFIF data (split into regions).aDecoderConfigFile
- The config file containing which decoders to use.aDomainFactory
- The domain factory to use for creating domain objects.IllegalArgumentException
- when unsplitted DAFIF edition 7 data is loaded.public TLcdDAFIFLoader(String aDAFIFRoot, String aDecoderConfigFile, TLcdAISDataObjectFactory aDomainFactory)
aDAFIFRoot
- The source path for reading DAFIF data (split into regions).aDecoderConfigFile
- The config file containing which decoders to use.aDomainFactory
- The domain factory to use for creating domain objects.IllegalArgumentException
- when unsplitted DAFIF edition 7 data is loaded.@Deprecated public TLcdDAFIFLoader(String aDAFIFRoot, String aDecoderConfigFile, ALcdAISObjectFactory aDomainFactory, boolean aEnableSubTypeFiltering)
aDAFIFRoot
- The source path for reading DAFIF data (split into regions).aDecoderConfigFile
- The config file containing which decoders to use.aDomainFactory
- The domain factory to use for creating domain objects.aEnableSubTypeFiltering
- If subtype filtering functionality should be enabled in the loader panel.IllegalArgumentException
- when unsplitted DAFIF edition 7 data is loaded.public TLcdDAFIFLoader(String aDAFIFRoot, String aDecoderConfigFile, TLcdAISDataObjectFactory aDomainFactory, boolean aEnableSubTypeFiltering)
aDAFIFRoot
- The source path for reading DAFIF data (split into regions).aDecoderConfigFile
- The config file containing which decoders to use.aDomainFactory
- The domain factory to use for creating domain objects.aEnableSubTypeFiltering
- If subtype filtering functionality should be enabled in the loader panel.IllegalArgumentException
- when unsplitted DAFIF edition 7 data is loaded.@Deprecated public TLcdDAFIFLoader(String aDAFIFRoot, String aDecoderConfigFile, ALcdAISObjectFactory aDomainFactory, boolean aEnableSubTypeFiltering, ILcdStringTranslator aTranslator)
ILcdStringTranslator
is used to translate the label of the 'Update' button and the
'Types' in the user interface. It is also passed on to the TLcdDAFIFRegionChooser
.aDAFIFRoot
- The source path for reading DAFIF data (split into regions).aDecoderConfigFile
- The config file containing which decoders to use.aDomainFactory
- The domain factory to use for creating domain objects.aEnableSubTypeFiltering
- If subtype filtering functionality should be enabled in the loader panel.aTranslator
- The string translator which will be used for translating strings.IllegalArgumentException
- when unsplitted DAFIF edition 7 data is loaded.public TLcdDAFIFLoader(String aDAFIFRoot, String aDecoderConfigFile, TLcdAISDataObjectFactory aDomainFactory, boolean aEnableSubTypeFiltering, ILcdStringTranslator aTranslator)
ILcdStringTranslator
is used to translate the label of the 'Update' button and the
'Types' in the user interface. It is also passed on to the TLcdDAFIFRegionChooser
.aDAFIFRoot
- The source path for reading DAFIF data (split into regions).aDecoderConfigFile
- The config file containing which decoders to use.aDomainFactory
- The domain factory to use for creating domain objects.aEnableSubTypeFiltering
- If subtype filtering functionality should be enabled in the loader panel.aTranslator
- The string translator which will be used for translating strings.IllegalArgumentException
- when unsplitted DAFIF edition 7 data is loaded.public void setEnabled(boolean enabled)
setEnabled
in class JComponent
public void dispose()
public void update()
public Object getLoaderLock()
public static boolean isClassTraceOn()
true
if tracing is enabled for this class.public static void setClassTraceOn(boolean aClassTraceOn)
true
then all log messages are recorded, otherwise only
the informative, warning and error messages are recorded.aClassTraceOn
- if true then all log messages are recorded,
otherwise only the informative, warning and error messages are recorded.public void modelRemovedExternally(ILcdModel aModel)
aModel
- The model that has been removed.public void addStatusListener(ILcdStatusListener aListener)
ILcdStatusListener
to all DAFIF loaders used by this instance.aListener
- an ILcdStatusListener
public void removeStatusListener(ILcdStatusListener aListener)
aListener
- an ILcdStatusListener
public void addDAFIFLoaderListener(ILcdDAFIFLoaderListener aListener)
ILcdDAFIFLoaderListener
to all DAFIF loaders used by this instance.aListener
- an ILcdDAFIFLoaderListener
public void removeDAFIFLoaderListener(ILcdDAFIFLoaderListener aListener)
aListener
- an ILcdDAFIFLoaderListener
public TLcdDAFIFRegionChooser getDAFIFRegionChooser()
public int getDAFIFTypeLoaderCount()
public TLcdDAFIFTypeLoader getDAFIFTypeLoader(int index)
index
- Indicates which type loader you wantpublic void setSelectedTypes(String[] aTypes)
aTypes
- An array containing the names of the types you wish to select.public String[] getSelectedTypes()
public String[] getSelectedSubTypes(String aType)
aType
- The type for which the selected subtypes will be returned.