public class TraditionalTopicPanel extends AbstractTraditionalTopicPanel implements java.awt.event.ActionListener, TopicPanel
AbstractTraditionalTopicPanel.AssociationTableTransferHandler, AbstractTraditionalTopicPanel.ClassesPanelTransferHandler, AbstractTraditionalTopicPanel.InstancesPanelTransferHandler, AbstractTraditionalTopicPanel.OccurrencesPanelTransferHandler, AbstractTraditionalTopicPanel.TopicPanelTransferHandler
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
private javax.swing.JPanel |
associationPanel |
private javax.swing.JPanel |
associationPanelMargin |
private javax.swing.JPanel |
associationRootPanel |
private javax.swing.JLabel |
associationsNumber |
private javax.swing.JLabel |
associationsTitle |
private javax.swing.JPanel |
associationsTitleFiller |
private javax.swing.JPanel |
associationsTitlePanel |
private javax.swing.JPanel |
associationWrapperPanel |
private javax.swing.JTextField |
baseNameField |
private javax.swing.JLabel |
baseNameLabel |
private javax.swing.JComponent |
buttonContainer |
private javax.swing.JPanel |
buttonWrapperPanel |
private javax.swing.JLabel |
classesNumber |
private javax.swing.JPanel |
classesPanel |
private javax.swing.JPanel |
classesPanelMargin |
private javax.swing.JPanel |
classesRootPanel |
private javax.swing.JLabel |
classesTitle |
private javax.swing.JPanel |
classesTitleFiller |
private javax.swing.JPanel |
classesTitlePanel |
private javax.swing.JPanel |
classesWrapperPanel |
private javax.swing.JPanel |
containerPanel |
private javax.swing.JLabel |
dataNumber |
private javax.swing.JPanel |
dataPanel |
private javax.swing.JPanel |
dataPanelMargin |
private javax.swing.JLabel |
dataTitle |
private javax.swing.JPanel |
dataTitleFiller |
private javax.swing.JPanel |
dataTitlePanel |
private javax.swing.JPanel |
fillerPanel |
private javax.swing.JPanel |
idPanel |
private javax.swing.JLabel |
instancesNumber |
private javax.swing.JPanel |
instancesPanel |
private javax.swing.JPanel |
instancesPanelMargin |
private javax.swing.JPanel |
instancesRootPanel |
private javax.swing.JLabel |
instancesTitle |
private javax.swing.JPanel |
instancesTitleFiller |
private javax.swing.JPanel |
instancesTitlePanel |
private javax.swing.JPanel |
instancesWrapperPanel |
static boolean |
MAKE_LOCAL_SETTINGS_GLOBAL |
private javax.swing.JPanel |
occurrencesRootPanel |
private javax.swing.JPanel |
occurrencesWrapperPanel |
protected Options |
options |
private java.lang.String |
originalBN |
private java.lang.String |
originalSL |
private java.lang.Object[][] |
panelStruct |
private javax.swing.JPanel |
previewContainerPanel |
private javax.swing.JPanel |
previewPanel |
private PreviewWrapper |
previewWrapper |
private javax.swing.JPanel |
removedTopicMessage |
private javax.swing.JLabel |
removedTopicMessageLabel |
private javax.swing.JLabel |
subjectIdentifierLabel |
private javax.swing.JPanel |
subjectIdentifierPanel |
private javax.swing.JPanel |
subjectIdentifierRootPanel |
private javax.swing.JTextField |
subjectLocatorField |
private javax.swing.JLabel |
subjectLocatorLabel |
private javax.swing.JToggleButton |
subjectLocatorViewButton |
Topic |
topic |
java.lang.String |
topicSI |
private javax.swing.JLabel |
typedAssociationNumber |
private javax.swing.JPanel |
typedAssociationsPanel |
private javax.swing.JPanel |
typedAssociationsRootPanel |
private javax.swing.JPanel |
typedAssociationsTitlePanel |
private javax.swing.JPanel |
typedAssociationsWrapperPanel |
private javax.swing.JLabel |
typedAssociationTitle |
private javax.swing.JPanel |
typedAssociationTitleFiller |
private javax.swing.JPanel |
typesAssociationPanelMargin |
private javax.swing.JLabel |
variantNumber |
private javax.swing.JPanel |
variantPanel |
private javax.swing.JPanel |
variantPanelMargin |
private javax.swing.JPanel |
variantRootPanel |
private javax.swing.JLabel |
variantTitle |
private javax.swing.JPanel |
variantTitleFiller |
private javax.swing.JPanel |
variantTitlePanel |
private javax.swing.JPanel |
variantWrapperPanel |
private Wandora |
wandora |
ASSOCIATIONS_WHERE_PLAYER, ASSOCIATIONS_WHERE_TYPE, invNameTable, leftTableBorder, leftTopTableBorder, nameTable, needsRefresh, occurrenceTable, occurrenceTables, openTopic, OPTIONS_PREFIX, OPTIONS_VIEW_PREFIX, originalNameTable, tableBorderColor, VARIANT_GUITYPE_OPTIONS_KEY, VARIANT_GUITYPE_SCHEMA, VARIANT_GUITYPE_USED, variantGUIType, visibleTopics
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
TraditionalTopicPanel() |
TraditionalTopicPanel(Topic topic,
Wandora wandora)
Creates new form TraditionalTopicPanel
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent actionEvent) |
boolean |
applyChanges()
Topic panel should store all pending changes immediately.
|
private void |
baseNameFieldFocusLost(java.awt.event.FocusEvent evt) |
private void |
baseNameFieldKeyReleased(java.awt.event.KeyEvent evt) |
javax.swing.JPopupMenu |
getAssociationsMenu() |
javax.swing.JPopupMenu |
getAssociationTypeMenu() |
javax.swing.JPopupMenu |
getClassesMenu() |
javax.swing.JPanel |
getGui()
Return the UI element for the topic panel.
|
javax.swing.Icon |
getIcon()
Return icon image of the topic panel.
|
javax.swing.JPopupMenu |
getInstancesMenu() |
java.lang.String |
getName()
Return name of the topic panel.
|
javax.swing.JPopupMenu |
getNamesMenu() |
javax.swing.JPopupMenu |
getOccurrencesMenu() |
javax.swing.JPopupMenu |
getOccurrenceTypeMenu(Topic occurrenceType) |
int |
getOrder()
Return integer number that specifies topic panel's order.
|
javax.swing.JPopupMenu |
getSIMenu() |
javax.swing.JPopupMenu |
getSLMenu() |
javax.swing.JPopupMenu |
getSubjectMenu() |
java.lang.String |
getTitle()
Return title of the topic panel.
|
Topic |
getTopic()
Return the active topic in topic panel.
|
LocatorHistory |
getTopicHistory()
A topic panel can store it's own topic history.
|
javax.swing.JMenu |
getViewMenu() |
java.lang.Object[] |
getViewMenuStruct()
Topic panel can provide a menu structure that Wandora views in UI.
|
javax.swing.JPopupMenu |
getViewPopupMenu() |
void |
init()
Initialize the TopicPanel.
|
private void |
initComponents()
This method is called from within the constructor to
initialize the form.
|
boolean |
noScroll()
If this returns true, then the topic panel will not be wrapped inside
a scroll pane.
|
void |
open(Topic topic)
Open a topic in the topic panel.
|
int |
print(java.awt.Graphics graphics,
java.awt.print.PageFormat pageFormat,
int param) |
void |
refresh()
Request topic panel UI refresh.
|
private void |
setVisibitilityOption(java.lang.String key,
boolean value) |
private int |
solvePanelIndex(java.lang.String componentName) |
void |
stop()
A topic panel should stop all threads and close all (shared) resources.
|
private void |
subjectLocatorFieldFocusLost(java.awt.event.FocusEvent evt) |
private void |
subjectLocatorFieldKeyReleased(java.awt.event.KeyEvent evt) |
private void |
subjectLocatorViewButtonActionPerformed(java.awt.event.ActionEvent evt) |
private void |
toggleVisibility(java.awt.Component component,
java.lang.String optionName) |
void |
toggleVisibility(java.lang.String componentName) |
applyChanges, associationChanged, associationPlayerChanged, associationRemoved, associationTypeChanged, buildAllNamesPanel, buildAssociationsPanel, buildAssociationsPanel, buildClassesPanel, buildHorizontalNamePanel, buildInstancesPanel, buildNamePanel, buildOccurrencesPanel, buildOccurrencesPanelOld, buildSubjectIdentifierPanel, buildVerticalNamePanel, doRefresh, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, setPanelTitle, supportsOpenTopic, topicBaseNameChanged, topicChanged, topicDataChanged, topicRemoved, topicSubjectIdentifierChanged, topicSubjectLocatorChanged, topicTypeChanged, topicVariantChanged
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, 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, 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, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
supportsOpenTopic
associationChanged, associationPlayerChanged, associationRemoved, associationTypeChanged, topicBaseNameChanged, topicChanged, topicDataChanged, topicRemoved, topicSubjectIdentifierChanged, topicSubjectLocatorChanged, topicTypeChanged, topicVariantChanged
public static final boolean MAKE_LOCAL_SETTINGS_GLOBAL
public Topic topic
public java.lang.String topicSI
private Wandora wandora
protected Options options
private java.lang.Object[][] panelStruct
private java.lang.String originalBN
private java.lang.String originalSL
private javax.swing.JComponent buttonContainer
private PreviewWrapper previewWrapper
private javax.swing.JPanel associationPanel
private javax.swing.JPanel associationPanelMargin
private javax.swing.JPanel associationRootPanel
private javax.swing.JPanel associationWrapperPanel
private javax.swing.JLabel associationsNumber
private javax.swing.JLabel associationsTitle
private javax.swing.JPanel associationsTitleFiller
private javax.swing.JPanel associationsTitlePanel
private javax.swing.JTextField baseNameField
private javax.swing.JLabel baseNameLabel
private javax.swing.JPanel buttonWrapperPanel
private javax.swing.JLabel classesNumber
private javax.swing.JPanel classesPanel
private javax.swing.JPanel classesPanelMargin
private javax.swing.JPanel classesRootPanel
private javax.swing.JLabel classesTitle
private javax.swing.JPanel classesTitleFiller
private javax.swing.JPanel classesTitlePanel
private javax.swing.JPanel classesWrapperPanel
private javax.swing.JPanel containerPanel
private javax.swing.JLabel dataNumber
private javax.swing.JPanel dataPanel
private javax.swing.JPanel dataPanelMargin
private javax.swing.JLabel dataTitle
private javax.swing.JPanel dataTitleFiller
private javax.swing.JPanel dataTitlePanel
private javax.swing.JPanel fillerPanel
private javax.swing.JPanel idPanel
private javax.swing.JLabel instancesNumber
private javax.swing.JPanel instancesPanel
private javax.swing.JPanel instancesPanelMargin
private javax.swing.JPanel instancesRootPanel
private javax.swing.JLabel instancesTitle
private javax.swing.JPanel instancesTitleFiller
private javax.swing.JPanel instancesTitlePanel
private javax.swing.JPanel instancesWrapperPanel
private javax.swing.JPanel occurrencesRootPanel
private javax.swing.JPanel occurrencesWrapperPanel
private javax.swing.JPanel previewContainerPanel
private javax.swing.JPanel previewPanel
private javax.swing.JPanel removedTopicMessage
private javax.swing.JLabel removedTopicMessageLabel
private javax.swing.JLabel subjectIdentifierLabel
private javax.swing.JPanel subjectIdentifierPanel
private javax.swing.JPanel subjectIdentifierRootPanel
private javax.swing.JTextField subjectLocatorField
private javax.swing.JLabel subjectLocatorLabel
private javax.swing.JToggleButton subjectLocatorViewButton
private javax.swing.JLabel typedAssociationNumber
private javax.swing.JLabel typedAssociationTitle
private javax.swing.JPanel typedAssociationTitleFiller
private javax.swing.JPanel typedAssociationsPanel
private javax.swing.JPanel typedAssociationsRootPanel
private javax.swing.JPanel typedAssociationsTitlePanel
private javax.swing.JPanel typedAssociationsWrapperPanel
private javax.swing.JPanel typesAssociationPanelMargin
private javax.swing.JLabel variantNumber
private javax.swing.JPanel variantPanel
private javax.swing.JPanel variantPanelMargin
private javax.swing.JPanel variantRootPanel
private javax.swing.JLabel variantTitle
private javax.swing.JPanel variantTitleFiller
private javax.swing.JPanel variantTitlePanel
private javax.swing.JPanel variantWrapperPanel
public TraditionalTopicPanel(Topic topic, Wandora wandora)
public TraditionalTopicPanel()
public void init()
TopicPanel
init
in interface TopicPanel
public void open(Topic topic)
TopicPanel
open
in interface TopicPanel
public javax.swing.Icon getIcon()
TopicPanel
getIcon
in interface TopicPanel
public java.lang.String getName()
TopicPanel
getName
in interface TopicPanel
getName
in class java.awt.Component
public java.lang.String getTitle()
TopicPanel
getTitle
in interface TopicPanel
public int getOrder()
TopicPanel
getOrder
in interface TopicPanel
public Topic getTopic()
TopicPanel
getTopic
in interface TopicPanel
public LocatorHistory getTopicHistory()
TopicPanel
getTopicHistory
in interface TopicPanel
public javax.swing.JPanel getGui()
TopicPanel
getGui
in interface TopicPanel
public boolean noScroll()
TopicPanel
noScroll
in interface TopicPanel
public javax.swing.JPopupMenu getViewPopupMenu()
getViewPopupMenu
in interface TopicPanel
public javax.swing.JMenu getViewMenu()
getViewMenu
in interface TopicPanel
public java.lang.Object[] getViewMenuStruct()
TopicPanel
getViewMenuStruct
in interface TopicPanel
public void toggleVisibility(java.lang.String componentName)
toggleVisibility
in class AbstractTraditionalTopicPanel
private int solvePanelIndex(java.lang.String componentName)
private void toggleVisibility(java.awt.Component component, java.lang.String optionName)
private void setVisibitilityOption(java.lang.String key, boolean value)
public void refresh()
TopicPanel
refresh
in interface TopicPanel
refresh
in class AbstractTraditionalTopicPanel
public boolean applyChanges() throws CancelledException, TopicMapException
TopicPanel
applyChanges
in interface TopicPanel
CancelledException
TopicMapException
public void stop()
TopicPanel
stop
in interface TopicPanel
private void initComponents()
private void baseNameFieldKeyReleased(java.awt.event.KeyEvent evt)
private void subjectLocatorFieldKeyReleased(java.awt.event.KeyEvent evt)
private void subjectLocatorFieldFocusLost(java.awt.event.FocusEvent evt)
private void baseNameFieldFocusLost(java.awt.event.FocusEvent evt)
private void subjectLocatorViewButtonActionPerformed(java.awt.event.ActionEvent evt)
public int print(java.awt.Graphics graphics, java.awt.print.PageFormat pageFormat, int param) throws java.awt.print.PrinterException
print
in interface java.awt.print.Printable
java.awt.print.PrinterException
public javax.swing.JPopupMenu getNamesMenu()
getNamesMenu
in class AbstractTraditionalTopicPanel
public javax.swing.JPopupMenu getClassesMenu()
getClassesMenu
in class AbstractTraditionalTopicPanel
public javax.swing.JPopupMenu getInstancesMenu()
getInstancesMenu
in class AbstractTraditionalTopicPanel
public javax.swing.JPopupMenu getSIMenu()
getSIMenu
in class AbstractTraditionalTopicPanel
public javax.swing.JPopupMenu getOccurrencesMenu()
getOccurrencesMenu
in class AbstractTraditionalTopicPanel
public javax.swing.JPopupMenu getOccurrenceTypeMenu(Topic occurrenceType)
getOccurrenceTypeMenu
in class AbstractTraditionalTopicPanel
public javax.swing.JPopupMenu getSLMenu()
public javax.swing.JPopupMenu getAssociationsMenu()
getAssociationsMenu
in class AbstractTraditionalTopicPanel
public javax.swing.JPopupMenu getAssociationTypeMenu()
getAssociationTypeMenu
in class AbstractTraditionalTopicPanel
public javax.swing.JPopupMenu getSubjectMenu()
getSubjectMenu
in class AbstractTraditionalTopicPanel
public void actionPerformed(java.awt.event.ActionEvent actionEvent)
actionPerformed
in interface java.awt.event.ActionListener
Copyright 2004-2015 Wandora Team