public class TraditionalTopicPanel extends AbstractTraditionalTopicPanel implements java.awt.event.ActionListener, TopicPanel
AbstractTraditionalTopicPanel.AssociationTableTransferHandler, AbstractTraditionalTopicPanel.ClassesPanelTransferHandler, AbstractTraditionalTopicPanel.InstancesPanelTransferHandler, AbstractTraditionalTopicPanel.OccurrencesPanelTransferHandler, AbstractTraditionalTopicPanel.TopicPanelTransferHandlerjavax.swing.JPanel.AccessibleJPaneljavax.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, visibleTopicslistenerList, 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, topicVariantChangedgetAccessibleContext, 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, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsupportsOpenTopicassociationChanged, associationPlayerChanged, associationRemoved, associationTypeChanged, topicBaseNameChanged, topicChanged, topicDataChanged, topicRemoved, topicSubjectIdentifierChanged, topicSubjectLocatorChanged, topicTypeChanged, topicVariantChangedpublic 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()
TopicPanelinit in interface TopicPanelpublic void open(Topic topic)
TopicPanelopen in interface TopicPanelpublic javax.swing.Icon getIcon()
TopicPanelgetIcon in interface TopicPanelpublic java.lang.String getName()
TopicPanelgetName in interface TopicPanelgetName in class java.awt.Componentpublic java.lang.String getTitle()
TopicPanelgetTitle in interface TopicPanelpublic int getOrder()
TopicPanelgetOrder in interface TopicPanelpublic Topic getTopic()
TopicPanelgetTopic in interface TopicPanelpublic LocatorHistory getTopicHistory()
TopicPanelgetTopicHistory in interface TopicPanelpublic javax.swing.JPanel getGui()
TopicPanelgetGui in interface TopicPanelpublic boolean noScroll()
TopicPanelnoScroll in interface TopicPanelpublic javax.swing.JPopupMenu getViewPopupMenu()
getViewPopupMenu in interface TopicPanelpublic javax.swing.JMenu getViewMenu()
getViewMenu in interface TopicPanelpublic java.lang.Object[] getViewMenuStruct()
TopicPanelgetViewMenuStruct in interface TopicPanelpublic void toggleVisibility(java.lang.String componentName)
toggleVisibility in class AbstractTraditionalTopicPanelprivate 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()
TopicPanelrefresh in interface TopicPanelrefresh in class AbstractTraditionalTopicPanelpublic boolean applyChanges()
throws CancelledException,
TopicMapException
TopicPanelapplyChanges in interface TopicPanelCancelledExceptionTopicMapExceptionpublic void stop()
TopicPanelstop in interface TopicPanelprivate 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.Printablejava.awt.print.PrinterExceptionpublic javax.swing.JPopupMenu getNamesMenu()
getNamesMenu in class AbstractTraditionalTopicPanelpublic javax.swing.JPopupMenu getClassesMenu()
getClassesMenu in class AbstractTraditionalTopicPanelpublic javax.swing.JPopupMenu getInstancesMenu()
getInstancesMenu in class AbstractTraditionalTopicPanelpublic javax.swing.JPopupMenu getSIMenu()
getSIMenu in class AbstractTraditionalTopicPanelpublic javax.swing.JPopupMenu getOccurrencesMenu()
getOccurrencesMenu in class AbstractTraditionalTopicPanelpublic javax.swing.JPopupMenu getOccurrenceTypeMenu(Topic occurrenceType)
getOccurrenceTypeMenu in class AbstractTraditionalTopicPanelpublic javax.swing.JPopupMenu getSLMenu()
public javax.swing.JPopupMenu getAssociationsMenu()
getAssociationsMenu in class AbstractTraditionalTopicPanelpublic javax.swing.JPopupMenu getAssociationTypeMenu()
getAssociationTypeMenu in class AbstractTraditionalTopicPanelpublic javax.swing.JPopupMenu getSubjectMenu()
getSubjectMenu in class AbstractTraditionalTopicPanelpublic void actionPerformed(java.awt.event.ActionEvent actionEvent)
actionPerformed in interface java.awt.event.ActionListenerCopyright 2004-2015 Wandora Team