com.bonevich.erj.ui.editor
Class ModelEditor
java.lang.Object
|
+--com.bonevich.erj.ui.editor.ModelEditor
- All Implemented Interfaces:
- ErjConstants
- Direct Known Subclasses:
- AttributeEditor, DomainEditor, ForeignKeyEditor, KeyEditor, RelationEditor, SchemaEditor
- public abstract class ModelEditor
- extends java.lang.Object
- implements ErjConstants
A base class for model editors. Provides a single
pane which contains the name, label, and description
fields common to most model elements. Subclasses
can create additional tab panes by creating instances
of TabInfo and adding them to the tab
list.
| Fields inherited from interface com.bonevich.erj.ErjConstants |
EDITOR_COLOR, EDITOR_FONT, EMPTY_STR, ICON_AK, ICON_DOMAIN, ICON_FK, ICON_FOREIGNKEY, ICON_NOTNULL, ICON_NULL, ICON_PK, ICON_RELATION, ICON_SCHEMA, ICON_SPLASH, INITIAL_FRAME_SIZE, LABEL_COLOR, LABEL_FILL, LABEL_FONT, LABEL_FONT_ITALIC, LABEL_FONT_SIZE, LABEL_FONTMETRICS, STATUSBAR_COLOR, STATUSBAR_FONT, STATUSBAR_FONT_ITALIC, STATUSBAR_MOD_FILL, SUBLABEL_FILL |
|
Constructor Summary |
ModelEditor(javax.swing.JTabbedPane parent,
java.lang.Object owner)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME_STR
public static final java.lang.String NAME_STR
- See Also:
- Constant Field Values
IDENTIFIER_STR
public static final java.lang.String IDENTIFIER_STR
- See Also:
- Constant Field Values
DESC_STR
public static final java.lang.String DESC_STR
- See Also:
- Constant Field Values
_propPane
protected javax.swing.JPanel _propPane
_namePane
protected javax.swing.JPanel _namePane
_nameLabel
protected javax.swing.JLabel _nameLabel
_nameText
protected javax.swing.JTextField _nameText
_identifierPane
protected javax.swing.JPanel _identifierPane
_identifierLabel
protected javax.swing.JLabel _identifierLabel
_identifierText
protected IdentifierTextField _identifierText
_descPane
protected javax.swing.JPanel _descPane
_descBrdr
protected javax.swing.border.Border _descBrdr
_descText
protected javax.swing.JTextArea _descText
ModelEditor
public ModelEditor(javax.swing.JTabbedPane parent,
java.lang.Object owner)
getParent
protected javax.swing.JTabbedPane getParent()
setParent
protected void setParent(javax.swing.JTabbedPane parent)
getOwner
protected java.lang.Object getOwner()
setOwner
protected void setOwner(java.lang.Object owner)
getWindow
public java.awt.Window getWindow()
setWindow
public void setWindow(java.awt.Window window)
ownerUpdated
protected void ownerUpdated()
addTab
protected com.bonevich.erj.ui.editor.ModelEditor.TabInfo addTab(java.lang.String l,
javax.swing.Icon i,
java.awt.Component c,
java.lang.String t,
int idx)
setDefaultLabel
protected void setDefaultLabel(java.lang.String label)
setDefaultIcon
protected void setDefaultIcon(javax.swing.Icon icon)
setDefaultTip
protected void setDefaultTip(java.lang.String tip)
setDefaultIndex
protected void setDefaultIndex(int index)
initTabs
protected void initTabs()
validate
public abstract boolean validate()
updateModel
public abstract void updateModel()
updateEditor
public abstract void updateEditor()
Copyright © 2001-2003 bonevich.com. All Rights Reserved.