public class StatusBar extends Object implements PropertyChangeListener, DocumentListener
Modifier and Type | Class and Description |
---|---|
static class |
StatusBar.StatusBarFactory |
Modifier and Type | Field and Description |
---|---|
static String |
CELL_MAIN |
static String |
CELL_POSITION |
static String |
CELL_TYPING_MODE |
protected EditorUI |
editorUI |
static String |
INSERT_LOCALE |
static String |
OVERWRITE_LOCALE |
Modifier and Type | Method and Description |
---|---|
JLabel |
addCell(int i,
String name,
String[] widestStrings) |
JLabel |
addCell(String name,
String[] widestStrings) |
void |
addCustomCell(int i,
JLabel c) |
void |
changedUpdate(DocumentEvent evt) |
protected JPanel |
createPanel() |
JLabel |
getCellByName(String name) |
int |
getCellCount() |
JPanel |
getPanel() |
String |
getText(String cellName) |
protected void |
initPanel() |
void |
insertUpdate(DocumentEvent evt) |
boolean |
isVisible() |
void |
propertyChange(PropertyChangeEvent evt) |
void |
removeUpdate(DocumentEvent evt) |
void |
setBoldText(String cellName,
String text) |
static void |
setGlobalCell(String cellName,
JLabel globalCell) |
void |
setText(String text,
int importance)
Set text into main cell with a given importance.
|
void |
setText(String cellName,
String text) |
void |
setText(String cellName,
String text,
Coloring extraColoring) |
void |
setText(String cellName,
String text,
Coloring extraColoring,
int importance) |
void |
setVisible(boolean v) |
void |
updateGlobal()
Update values into global cells.
|
public static final String CELL_MAIN
public static final String CELL_POSITION
public static final String CELL_TYPING_MODE
public static final String INSERT_LOCALE
public static final String OVERWRITE_LOCALE
protected EditorUI editorUI
public StatusBar(EditorUI editorUI)
public void insertUpdate(DocumentEvent evt)
insertUpdate
in interface DocumentListener
public void removeUpdate(DocumentEvent evt)
removeUpdate
in interface DocumentListener
public void changedUpdate(DocumentEvent evt)
changedUpdate
in interface DocumentListener
protected JPanel createPanel()
public boolean isVisible()
public void setVisible(boolean v)
public void updateGlobal()
public final JPanel getPanel()
protected void initPanel()
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
public int getCellCount()
public void addCustomCell(int i, JLabel c)
public void setText(String text, int importance)
text
- non-null text to be displayed.importance
- positive integer having