modnlp.tec.client.gui
public class ListDisplay extends javax.swing.JPanel implements TecDefaultChangeListener, java.awt.event.ComponentListener
ContextClient
,
Serialized Formjavax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static int |
BHEIGHT
Height of the scroll button panel
|
static int |
BWIDTH
Height of the scroll button panel
|
int |
concArrayOffset |
static java.lang.String |
HSEP |
javax.swing.JScrollPane |
jscroll |
static int |
LHEIGHT
Height of the scroll pane and list (to be used in resizing events etc)
|
javax.swing.JList |
list |
static int |
LWIDTH
Width of the scroll pane and list (to be used in resizing events etc)
|
static int |
MAXCOL |
int |
NOROWS |
int |
nowDisplayingfrom |
static int |
OFFSET |
ConcordanceBrowser |
parent |
ListDisplayRenderer |
renderer |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
ListDisplay(BrowserGUI parent,
javax.swing.ListModel lm) |
Modifier and Type | Method and Description |
---|---|
void |
addListSelectionListener(javax.swing.event.ListSelectionListener lsl) |
void |
componentHidden(java.awt.event.ComponentEvent e) |
void |
componentMoved(java.awt.event.ComponentEvent e) |
void |
componentResized(java.awt.event.ComponentEvent e) |
void |
componentShown(java.awt.event.ComponentEvent e) |
void |
defaultChanged(DefaultChangeEvent e)
Event raised (typically by a DefaultManager) to indicate
that a preference has changed in a way that requires
its displayed form to be updated.
|
void |
defaultChanged(FontSizeChangeEvent e) |
void |
defaultChanged(SortHorizonChangeEvent e) |
int |
getFontSize() |
int |
getIndexOfDetail(int col,
java.lang.String str) |
javax.swing.ListModel |
getListModel() |
int |
getSelectedIndex() |
ConcordanceObject |
getSelectedValue() |
void |
redisplayConc() |
void |
refresh() |
boolean |
resetFontIfChanged(float nsz)
Resets font when user preferences change
|
void |
setCellPrototype(ConcordanceObject co) |
void |
setFontSize(int fs) |
void |
setViewToIndex(int index) |
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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, 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, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, 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 javax.swing.JList list
public javax.swing.JScrollPane jscroll
public ConcordanceBrowser parent
public static int MAXCOL
public static int OFFSET
public static java.lang.String HSEP
public static int LWIDTH
public static int LHEIGHT
public static int BWIDTH
public static int BHEIGHT
public int NOROWS
public int concArrayOffset
public int nowDisplayingfrom
public ListDisplayRenderer renderer
public ListDisplay(BrowserGUI parent, javax.swing.ListModel lm)
public int getIndexOfDetail(int col, java.lang.String str)
public void refresh()
public void setViewToIndex(int index)
public void addListSelectionListener(javax.swing.event.ListSelectionListener lsl)
public ConcordanceObject getSelectedValue()
public int getSelectedIndex()
public javax.swing.ListModel getListModel()
public void setFontSize(int fs)
public int getFontSize()
public void setCellPrototype(ConcordanceObject co)
public boolean resetFontIfChanged(float nsz)
true
if font has been resetpublic void defaultChanged(DefaultChangeEvent e)
TecDefaultChangeListener
defaultChanged
in interface DefaultChangeListener
defaultChanged
in interface TecDefaultChangeListener
e
- a concordance list eventDefaultManager
,
DefaultChangeEvent
public void defaultChanged(SortHorizonChangeEvent e)
defaultChanged
in interface TecDefaultChangeListener
public void defaultChanged(FontSizeChangeEvent e)
defaultChanged
in interface TecDefaultChangeListener
public void componentResized(java.awt.event.ComponentEvent e)
componentResized
in interface java.awt.event.ComponentListener
public void redisplayConc()
public void componentHidden(java.awt.event.ComponentEvent e)
componentHidden
in interface java.awt.event.ComponentListener
public void componentMoved(java.awt.event.ComponentEvent e)
componentMoved
in interface java.awt.event.ComponentListener
public void componentShown(java.awt.event.ComponentEvent e)
componentShown
in interface java.awt.event.ComponentListener