public class CustomTopicPanel extends AbstractTraditionalTopicPanel implements java.awt.event.ActionListener, TopicPanel
| Modifier and Type | Class and Description |
|---|---|
static class |
CustomTopicPanel.QueryGroupInfo |
static class |
CustomTopicPanel.QueryInfo |
private class |
CustomTopicPanel.TopicPanelTransferHandler |
AbstractTraditionalTopicPanel.AssociationTableTransferHandler, AbstractTraditionalTopicPanel.ClassesPanelTransferHandler, AbstractTraditionalTopicPanel.InstancesPanelTransferHandler, AbstractTraditionalTopicPanel.OccurrencesPanelTransferHandlerjavax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
private javax.swing.JTextField |
baseNameField |
private javax.swing.JLabel |
baseNameLabel |
private javax.swing.JButton |
configCancelButton |
private javax.swing.JDialog |
configDialog |
private javax.swing.JButton |
configOkButton |
private javax.swing.JPanel |
configurationPanel |
private javax.swing.JButton |
configureButton |
protected SimplePanel |
customPanel |
protected Options |
globalOptions |
private javax.swing.JPanel |
idPanel |
private javax.swing.JPanel |
idPanelWrapper |
private javax.swing.JPanel |
jPanel4 |
protected Options |
options |
private java.lang.String |
OPTIONS_PREFIX |
private java.lang.String |
OPTIONS_VIEW_PREFIX |
protected java.lang.String |
originalBN |
protected java.lang.String |
originalSL |
private javax.swing.JPanel |
panelContainer |
private javax.swing.JPanel |
previewPanel |
private javax.swing.JPanel |
previewPanelContainer |
protected java.util.ArrayList<CustomTopicPanel.QueryGroupInfo> |
queryGroups |
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 |
protected Topic |
topic |
protected java.lang.String |
topicSI |
static boolean |
USE_GLOBAL_OPTIONS |
private boolean |
viewSubjectLocatorResources |
protected Wandora |
wandora |
ASSOCIATIONS_WHERE_PLAYER, ASSOCIATIONS_WHERE_TYPE, invNameTable, leftTableBorder, leftTopTableBorder, nameTable, needsRefresh, occurrenceTable, occurrenceTables, openTopic, 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 |
|---|
CustomTopicPanel()
Creates new form CustomTopicPanel
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
boolean |
applyChanges()
Topic panel should store all pending changes immediately.
|
private void |
baseNameFieldKeyReleased(java.awt.event.KeyEvent evt) |
SimplePanel |
buildCustomPanel() |
MixedTopicTable |
buildCustomQuery(Directive query,
Topic context) |
static java.lang.String |
checkScript(java.awt.Component parent,
java.lang.String engineString,
java.lang.String script) |
private void |
configCancelButtonActionPerformed(java.awt.event.ActionEvent evt) |
private void |
configOkButtonActionPerformed(java.awt.event.ActionEvent evt) |
private void |
configureButtonActionPerformed(java.awt.event.ActionEvent evt) |
protected void |
evalQuery(CustomTopicPanel.QueryInfo info) |
javax.swing.JPopupMenu |
getAssociationsMenu() |
javax.swing.JPopupMenu |
getAssociationTypeMenu() |
javax.swing.JPopupMenu |
getClassesMenu() |
java.lang.String |
getGroupOptionsKey(java.lang.String name) |
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() |
javax.swing.JMenu |
getViewMenu(javax.swing.JMenu baseMenu) |
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.
|
void |
parseOptions() |
int |
print(java.awt.Graphics graphics,
java.awt.print.PageFormat pageFormat,
int param) |
void |
refresh()
Request topic panel UI refresh.
|
protected void |
showConfigureDialog() |
void |
stop()
A topic panel should stop all threads and close all (shared) resources.
|
private void |
subjectLocatorFieldKeyReleased(java.awt.event.KeyEvent evt) |
void |
writeOptions() |
applyChanges, associationChanged, associationPlayerChanged, associationRemoved, associationTypeChanged, buildAllNamesPanel, buildAssociationsPanel, buildAssociationsPanel, buildClassesPanel, buildHorizontalNamePanel, buildInstancesPanel, buildNamePanel, buildOccurrencesPanel, buildOccurrencesPanelOld, buildSubjectIdentifierPanel, buildVerticalNamePanel, doRefresh, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, setPanelTitle, supportsOpenTopic, toggleVisibility, 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 boolean USE_GLOBAL_OPTIONS
private boolean viewSubjectLocatorResources
protected Topic topic
protected java.lang.String topicSI
protected Wandora wandora
protected java.lang.String originalBN
protected java.lang.String originalSL
protected Options options
protected Options globalOptions
protected SimplePanel customPanel
protected java.util.ArrayList<CustomTopicPanel.QueryGroupInfo> queryGroups
private java.lang.String OPTIONS_PREFIX
private java.lang.String OPTIONS_VIEW_PREFIX
private javax.swing.JTextField baseNameField
private javax.swing.JLabel baseNameLabel
private javax.swing.JButton configCancelButton
private javax.swing.JDialog configDialog
private javax.swing.JButton configOkButton
private javax.swing.JPanel configurationPanel
private javax.swing.JButton configureButton
private javax.swing.JPanel idPanel
private javax.swing.JPanel idPanelWrapper
private javax.swing.JPanel jPanel4
private javax.swing.JPanel panelContainer
private javax.swing.JPanel previewPanel
private javax.swing.JPanel previewPanelContainer
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
public void init()
TopicPanelinit in interface TopicPanelpublic Topic getTopic() throws TopicMapException
TopicPanelgetTopic in interface TopicPanelTopicMapExceptionpublic 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 javax.swing.JPanel getGui()
TopicPanelgetGui in interface TopicPanelpublic boolean applyChanges()
throws CancelledException,
TopicMapException
TopicPanelapplyChanges in interface TopicPanelCancelledExceptionTopicMapExceptionpublic javax.swing.JMenu getViewMenu(javax.swing.JMenu baseMenu)
public 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 open(Topic topic) throws TopicMapException
TopicPanelopen in interface TopicPanelTopicMapExceptionpublic java.lang.String getGroupOptionsKey(java.lang.String name)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void parseOptions()
public void writeOptions()
protected void evalQuery(CustomTopicPanel.QueryInfo info)
public SimplePanel buildCustomPanel()
public MixedTopicTable buildCustomQuery(Directive query, Topic context)
public void refresh()
TopicPanelrefresh in interface TopicPanelrefresh in class AbstractTraditionalTopicPanelpublic LocatorHistory getTopicHistory()
TopicPanelgetTopicHistory in interface TopicPanelpublic void stop()
TopicPanelstop in interface TopicPanelpublic 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 boolean noScroll()
TopicPanelnoScroll in interface TopicPanelprivate void initComponents()
public static java.lang.String checkScript(java.awt.Component parent,
java.lang.String engineString,
java.lang.String script)
private void configOkButtonActionPerformed(java.awt.event.ActionEvent evt)
private void configCancelButtonActionPerformed(java.awt.event.ActionEvent evt)
protected void showConfigureDialog()
private void configureButtonActionPerformed(java.awt.event.ActionEvent evt)
private void subjectLocatorFieldKeyReleased(java.awt.event.KeyEvent evt)
private void baseNameFieldKeyReleased(java.awt.event.KeyEvent evt)
Copyright 2004-2015 Wandora Team