com.sage.swt.client.customization
Interface PropertyBag

All Superinterfaces:
com.google.gwt.event.shared.HasHandlers, HasPropertyChangeHandlers
All Known Implementing Classes:
AbstractApplicationMenu, AbstractChartAxisPropertyEditorWidget.AxisPopupEditor, AbstractDropButton, AbstractLayoutWidget, AbstractSwtCellPanel, AbstractSwtChart, AbstractSwtContextMenuWidget, AbstractSwtDataWidget, AbstractSwtMenuWidget, AbstractSwtPortletWidget, AbstractSwtTextBox, AbstractSwtWidget, AbstractSwtWorkspaceTab, AbstractTablePopupEditor, ApplicationMenu, ApplicationMenuBar, ApplicationMenuItem, ChangePasswordPopup, ContextMenuItem, DefaultActionPopupEditor, DefaultActionPopupEditor.ParametersPopupEditor, DefaultPropertyBag, DropButtonMenuLabel, DummyLabel, ExtFilterFieldsPropertyEditorWidget.ExtFilterFieldsPropertyPopupEditor, ExtFilterFiscalPropertyEditorWidget.ExtFilterFiscalPropertyPopupEditor, ExtFilterLabelPropertyEditorWidget.ExtFilterLabelPropertyPopupEditor, ExtFilterPropertyBindingPropertyEditorWidget.ExtFilterPropertyBindingPopupEditor, FinderAdvancedSearchPopup, FinderSortingFieldPopupEditor, SortFieldListBox, SortFieldsPropertyPopupEditor, SortPanelPropertyBindingPopupEditor, SwtBarChart, SwtBuildErrorPanel, SwtButton, SwtButtonLayoutPanel, SwtCalendar, SwtCaptionPanel, SwtCategoriesPanel, SwtChartLegend, SwtCheckBox, SwtContextMenu, SwtCustomFieldsPanel, SwtDataLabel, SwtDataPanel, SwtDateBox, SwtDateComboBox, SwtDecoratorPanel, SwtDisclosurePanel, SwtDockPanel, SwtDualColumnLayoutPanel, SwtExtFilterPanel, SwtExtFilterPanel.OperatorListBox, SwtExtListFilterPanel, SwtExtQueryPanel, SwtFieldLayoutPanel, SwtFieldLayoutPanelEntry, SwtFilterPanel, SwtFinder, SwtFinderButton, SwtFlexTable, SwtFlowPanel, SwtGridPanel, SwtGroupByPanel, SwtGroupingPanel, SwtHelpButton, SwtHelpLink, SwtHorizontalPanel, SwtHoverHelp, SwtImageButton, SwtKeyLayoutPanel, SwtLabel, SwtLandingPageTab, SwtLayoutPortlet, SwtLineChart, SwtLineSeparator, SwtListBox, SwtMenuBar, SwtMenuButton, SwtMenuItem, SwtMultiColumnInputLayoutPanel, SwtMultiColumnInputLayoutPanelEntry, SwtMultiComboBox, SwtNavigator, SwtNavigatorLayoutPanel, SwtNoDataPanel, SwtOldTable, SwtOldTableWithFooter, SwtOptionsLayoutPanel, SwtPasswordTextBox, SwtPieChart, SwtPopupForm, SwtPortalBanner, SwtPortalMenuBar, SwtPortletGallery, SwtPostButton, SwtPrintButton, SwtPrintProcessTab, SwtProgress, SwtProgressIndicator, SwtQueryPanel, SwtRadioButton, SwtRadioGroup, SwtSectionLayoutPanel, SwtShortcutsPanel, SwtSimplePanel, SwtSingleTabPanel, SwtSortPanel, SwtTab, SwtTable, SwtTabPanel, SwtTaskTab, SwtTextArea, SwtTextBox, SwtTextComboBox, SwtThumbnailDock, SwtThumbnailPreviewScreen, SwtTree, SwtUrlPortlet, SwtVerticalPanel, SwtWidgetHelper, SwtWorkspace

public interface PropertyBag
extends HasPropertyChangeHandlers

Interface for a property bag.

A property bag contains a collection of properties. The property bag lets callers get and set the values and default values of individual properties. The property bag also lets callers add property change handlers. A property bag implementation should notify its property change handlerss whenever the value of one of its properties gets changed.


Method Summary
 java.util.Collection<Property> getProperties()
          Gets the collection of properties contained in this bag.
 java.lang.Object getPropertyDefaultValue(Property property)
          Gets the default value of a property.
 java.lang.Object getPropertyValue(Property property)
          Gets the value of a property.
 void setPropertyDefaultValue(Property property, java.lang.Object defaultValue)
          Sets the default value of a property.
 void setPropertyValue(Property property, java.lang.Object newValue)
          Sets the value of a property.
 
Methods inherited from interface com.sage.swt.client.customization.HasPropertyChangeHandlers
addPropertyChangeHandler
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Method Detail

setPropertyValue

void setPropertyValue(Property property,
                      java.lang.Object newValue)
Sets the value of a property.

Parameters:
property - The property in question.
newValue - The new value of the property.

setPropertyDefaultValue

void setPropertyDefaultValue(Property property,
                             java.lang.Object defaultValue)
Sets the default value of a property.

Parameters:
property - The property in question.
defaultValue - The default value of the property.

getPropertyValue

java.lang.Object getPropertyValue(Property property)
Gets the value of a property.

Parameters:
property - The property in question.
Returns:
The value of the property.

getPropertyDefaultValue

java.lang.Object getPropertyDefaultValue(Property property)
Gets the default value of a property.

Parameters:
property - The property in question.
Returns:
The default value of the property.

getProperties

java.util.Collection<Property> getProperties()
Gets the collection of properties contained in this bag.

Returns:
The collection of properties contained in this bag. Implementors should make sure that this collection is unmodifiable.


Copyright © 2011 Sage Software, Inc. All rights reserved.