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.OccurrencesPanelTransferHandler
javax.swing.JPanel.AccessibleJPanel
javax.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, visibleTopics
listenerList, 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, 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 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()
TopicPanel
init
in interface TopicPanel
public Topic getTopic() throws TopicMapException
TopicPanel
getTopic
in interface TopicPanel
TopicMapException
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 javax.swing.JPanel getGui()
TopicPanel
getGui
in interface TopicPanel
public boolean applyChanges() throws CancelledException, TopicMapException
TopicPanel
applyChanges
in interface TopicPanel
CancelledException
TopicMapException
public javax.swing.JMenu getViewMenu(javax.swing.JMenu baseMenu)
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 open(Topic topic) throws TopicMapException
TopicPanel
open
in interface TopicPanel
TopicMapException
public java.lang.String getGroupOptionsKey(java.lang.String name)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void parseOptions()
public void writeOptions()
protected void evalQuery(CustomTopicPanel.QueryInfo info)
public SimplePanel buildCustomPanel()
public MixedTopicTable buildCustomQuery(Directive query, Topic context)
public void refresh()
TopicPanel
refresh
in interface TopicPanel
refresh
in class AbstractTraditionalTopicPanel
public LocatorHistory getTopicHistory()
TopicPanel
getTopicHistory
in interface TopicPanel
public void stop()
TopicPanel
stop
in interface TopicPanel
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 boolean noScroll()
TopicPanel
noScroll
in interface TopicPanel
private 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