001: /**
002: * Miroslav Popov, Dec 5, 2005
003: * miroslav.popov@gmail.com
004: */package org.enhydra.jawe.base.panel;
005:
006: import java.awt.Color;
007:
008: import javax.swing.ImageIcon;
009:
010: import org.enhydra.jawe.JaWEComponentSettings;
011:
012: /**
013: * @author Miroslav Popov
014: *
015: */
016: public abstract class PanelSettings extends JaWEComponentSettings {
017:
018: public boolean useScrollBar() {
019: return ((Boolean) componentSettings.get("UseScrollBar"))
020: .booleanValue();
021: }
022:
023: public boolean shouldXMLBasicPanelUseRightAllignment() {
024: return ((Boolean) componentSettings
025: .get("XMLBasicPanel.RightAllignment")).booleanValue();
026: }
027:
028: public boolean doesXMLDataTypesPanelHasBorder() {
029: return ((Boolean) componentSettings
030: .get("XMLDataTypesPanel.HasBorder")).booleanValue();
031: }
032:
033: public boolean shouldShowModifiedWarning() {
034: return ((Boolean) componentSettings.get("ShowModifiedWarning"))
035: .booleanValue();
036: }
037:
038: public boolean shouldDisplayTitle() {
039: return ((Boolean) componentSettings.get("DisplayTitle"))
040: .booleanValue();
041: }
042:
043: public int getEmptyBorderTop() {
044: return ((Integer) componentSettings.get("EmptyBorder.TOP"))
045: .intValue();
046: }
047:
048: public int getEmptyBorderLeft() {
049: return ((Integer) componentSettings.get("EmptyBorder.LEFT"))
050: .intValue();
051: }
052:
053: public int getEmptyBorderBottom() {
054: return ((Integer) componentSettings.get("EmptyBorder.BOTTOM"))
055: .intValue();
056: }
057:
058: public int getEmptyBorderRight() {
059: return ((Integer) componentSettings.get("EmptyBorder.RIGHT"))
060: .intValue();
061: }
062:
063: public int getSimplePanelTextWidth() {
064: return ((Integer) componentSettings.get("SimplePanelTextWidth"))
065: .intValue();
066: }
067:
068: public int getSimplePanelTextHeight() {
069: return ((Integer) componentSettings
070: .get("SimplePanelTextHeight")).intValue();
071: }
072:
073: public int getXMLDataTypesPanelWidth() {
074: return ((Integer) componentSettings
075: .get("XMLDataTypesPanel.Dimension.WIDTH")).intValue();
076: }
077:
078: public int getXMLDataTypesPanelHeight() {
079: return ((Integer) componentSettings
080: .get("XMLDataTypesPanel.Dimension.HEIGHT")).intValue();
081: }
082:
083: public String disableComboInXMLComboPanelFor() {
084: return (String) componentSettings
085: .get("XMLComboPanel.DisableCombo");
086: }
087:
088: public ImageIcon getArrowRightImageIcon() {
089: return (ImageIcon) componentSettings.get("ArrowRightImage");
090: }
091:
092: public ImageIcon getArrowUpImageIcon() {
093: return (ImageIcon) componentSettings.get("ArrowUpImage");
094: }
095:
096: public ImageIcon getArrowDownImageIcon() {
097: return (ImageIcon) componentSettings.get("ArrowDownImage");
098: }
099:
100: public ImageIcon getInsertVariableDefaultIcon() {
101: return (ImageIcon) componentSettings
102: .get("InsertVariableDefault");
103: }
104:
105: public ImageIcon getInsertVariablePressedIcon() {
106: return (ImageIcon) componentSettings
107: .get("InsertVariablePressed");
108: }
109:
110: public String historyManagerClass() {
111: return (String) componentSettings.get("HistoryManager.Class");
112: }
113:
114: public int historySize() {
115: return ((Integer) componentSettings.get("HistorySize"))
116: .intValue();
117: }
118:
119: public Color getBackgroundColor() {
120: return (Color) componentSettings.get("BackgroundColor");
121: }
122:
123: }
|