|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel com.jidesoft.swing.NullPanel com.jidesoft.status.StatusBarItem com.jidesoft.status.LabelStatusBarItem com.jidesoft.editor.status.AbstractCodeEditorStatusBarItem com.jidesoft.editor.status.EditableStatusBarItem
public class EditableStatusBarItem
A StatusBarItem
to show the editable property of a CodeEditor
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
static Icon |
LOCK
|
Fields inherited from class com.jidesoft.editor.status.AbstractCodeEditorStatusBarItem |
---|
_editor |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
EditableStatusBarItem()
|
|
EditableStatusBarItem(String name)
|
Method Summary | |
---|---|
Icon |
getEditableIcon()
|
Icon |
getReadOnlyIcon()
|
void |
initialize()
Initializes the status bar item. |
void |
mouseClicked(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
propertyChange(PropertyChangeEvent evt)
|
void |
registerListener(CodeEditor editor)
Status bar item needs to keep track of a certain status in code editor. |
void |
setEditableIcon(Icon editableIcon)
|
void |
setReadOnlyIcon(Icon readOnlyIcon)
|
void |
unregisterListener(CodeEditor editor)
Removes the listener you registered in CodeEditorStatusBarItem.registerListener(com.jidesoft.editor.CodeEditor) . |
Methods inherited from class com.jidesoft.editor.status.AbstractCodeEditorStatusBarItem |
---|
getCodeEditor, setCodeEditor |
Methods inherited from class com.jidesoft.status.LabelStatusBarItem |
---|
addMouseListener, configureLabel, createLabel, getComponent, getHorizontalAlignment, getIcon, getItemName, getPreferredSize, getText, getToolTipLocation, getToolTipText, setAlignment, setEnabled, setHorizontalAlignment, setIcon, setText, setToolTip, setToolTipText |
Methods inherited from class com.jidesoft.status.StatusBarItem |
---|
getPreferredWidth, setPreferredWidth, updateUI |
Methods inherited from class com.jidesoft.swing.NullPanel |
---|
setBackground, setFont, setForeground |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Icon LOCK
Constructor Detail |
---|
public EditableStatusBarItem()
public EditableStatusBarItem(String name)
Method Detail |
---|
public void initialize()
CodeEditorStatusBarItem
initialize
in interface CodeEditorStatusBarItem
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
public void registerListener(CodeEditor editor)
CodeEditorStatusBarItem
CaretListener
to the editor. And you should also retrive current caret position and display it.
registerListener
in interface CodeEditorStatusBarItem
public void unregisterListener(CodeEditor editor)
CodeEditorStatusBarItem
CodeEditorStatusBarItem.registerListener(com.jidesoft.editor.CodeEditor)
.
unregisterListener
in interface CodeEditorStatusBarItem
public Icon getReadOnlyIcon()
public void setReadOnlyIcon(Icon readOnlyIcon)
public Icon getEditableIcon()
public void setEditableIcon(Icon editableIcon)
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |