com.sas.servlet.tbeans
Interface ComplexStyleInterface

All Known Subinterfaces:
TreeNodeInterface
All Known Implementing Classes:
AbstractBaseTableView, AbstractSelectorContainer, AppliedFilters, BarChartComposite, BarLineChartComposite, BaseActionCompositeTransformation, com.sas.servlet.tbeans.BaseActionCompositeTransformation2, BaseCalculatedItemSelectorPanel, BaseCompositeTransformation, com.sas.servlet.tbeans.BaseCompositeTransformation2, BaseDataSelector, BaseDualSelector, BaseExpandCollapse, BaseExpressionEditor, BaseHTMLMenuBar, BaseListEditor, BaseNavigationBar, BaseOLAPTableView, BaseRemoteFileSearch, BaseRemoteFileSelector, BaseRemoteFileToolBar, BaseSelectorPanel, BaseTableView, Button, CellContentsCheckBoxEditor, CellContentsRadioEditor, CellContentsRowSelectionRenderer, CheckBox, CheckBoxList, CheckBoxListPropertyEditor, ComboBoxView, DataSelector, DataSelectorListBoxView, DualListSelector, DualSelector, DualTreeSelector, EntityAttributeValueSelector, EntityAttributeValueSelectorPanel, ESRIMapChart, ESRIMapComposite, ExceptionHighlightingChartSelector, ExceptionHighlightingChartSelectorPanel, ExceptionHighlightingSelector, ExceptionHighlightingSelectorPanel, ExpandCollapse, ExportSelector, ExportSelectorPanel, FilterAndRankSelector, FilterAndRankSelectorPanel, FindSelector, FindSelectorPanel, GraphComposite, InformationServicesSearch, InformationServicesSelector, JDBCToTreeViewModelAdapter.LevelTreeNode, LineChartComposite, LinePlotComposite, ListBoxView, ListBoxViewPropertyEditor, ListEditor, MapCrossingSelector, MapCrossingSelectorPanel, MapPropertySelector, MapPropertySelectorPanel, MemberPropertiesSelector, MemberPropertiesSelectorPanel, Menu, MenuBar, MenuItem, NavigationBar, NavigationBarColumnScrollingElement, NavigationBarRowScrollingElement, NavigationBarScrollingElement, OLAPDrillState, OLAPESRIMapChart, OLAPESRIMapComposite, com.sas.servlet.tbeans.olapgraphics.html.OLAPGraphComposite, OLAPTableView, OLAPTableViewComposite, OLAPTimeBasedFilterSelector, OLAPTimeBasedFilterSelectorPanel, PercentCalculationsSelector, PercentCalculationsSelectorListBoxView, PercentCalculationsSelectorPanel, PieChartComposite, RadarChartComposite, Radio, RemoteFileSearch, RemoteFileSelector, RemoteFileToolBar, ScatterPlotComposite, SelectorMenuBar, SelectorMenuItem, SelectorPanel, ShowDetailDataComposite, SimpleCalculatedItemSelector, SimpleCalculatedItemSelectorPanel, SortSelector, SortSelectorPanel, TableColumnNavigationBar, TableRowNavigationBar, TableView, TableView, TableView, TableViewComposite, TextEntryPropertyEditor, TreeListSelector, TreeNode, TreeView, WaterfallChartComposite

public interface ComplexStyleInterface

Interface used by all complex components that either use several styles or a composite component that are made up of multiple components. The Map returned in this case is a com.sas.util.MapWithDefaults which implements java.util.Map. The MapWithDefaults when return by the getStyleMap Method contains a defaultMap, which is a static Map that contains default com.sas.servlet.tbeans.StyleInfo objects. The defaultMap is shared by all instances, to override the default you create a new StyleInfo object and use the put(String key) to set the new StyleInfo object on the map. This technique is being employed to save memmory since only 1 copy of the defaultMap is maintained.
java.util.Map myMap = getStyleMap(); //Override a paticular key com.sas.servlet.tbean.StyleInfo si = new StyleInfo("myClassid"); myMap.put("ROW_TITLE_STYLE",si);

You should NOT try to modify a StyleInfo object in this manor, doing so may modify the StyleInfo object in the static map, thus changing the default StyleInfo for all object instances that use the static map.
java.util.Map myMap = getStyleMap(); StyleInfo si = myMap.get("ROW_TITLE_STYLE"); si.setClassid("myClassid");


Method Summary
 java.util.Map getStyleMap()
          Returns a Map that contains all the Style information for a component
 

Method Detail

getStyleMap

java.util.Map getStyleMap()
Returns a Map that contains all the Style information for a component

Returns:
styleMap Map of all the style information



Copyright © 2009 SAS Institute Inc. All Rights Reserved.