com.tssap.util.ui.reuse.radio
Class RadioButtonComponent
java.lang.Object
|
+--com.tssap.util.ui.AbstractEditable
|
+--com.tssap.util.ui.reuse.GenericComponent
|
+--com.tssap.util.ui.reuse.radio.RadioButtonComponent
- All Implemented Interfaces:
- IEditable, IGenericComponent, IGridLayoutPaneContainer, IRadioButtonComponent, IReuseable
- public class RadioButtonComponent
- extends GenericComponent
- implements IRadioButtonComponent
| Methods inherited from class com.tssap.util.ui.reuse.GenericComponent |
addModifyListener, addSelectionListener, createPartControl, createPartControl, createPartControl, getTitle, getUserAreaGridLayoutPane, isComposable, isEnabled, removeModifyListener, removeSelectionListener, setTitle |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RadioButtonComponent
public RadioButtonComponent(java.lang.String title,
IRadioChooser[] radioChoosers,
boolean compact,
int selectionIndex)
- Constructors for RadioButtonComponent.
RadioButtonComponent
public RadioButtonComponent(java.lang.String title,
IRadioChooser[] radioChoosers,
boolean compact)
initContainer
public void initContainer(IGridLayoutPane userArea)
- Description copied from interface:
IGridLayoutPaneContainer
- Initialize component's UI. Implementor has to fill the given grid layout pane.
The number of columns comes from call to method getUserGridNumOfColumns().
If grid columns have equal widths is decided through call to isUserGridEqualColSize().
- Specified by:
initContainer in interface IGridLayoutPaneContainer
- See Also:
IGridLayoutPaneContainer.initContainer(IGridLayoutPane)
refresh
public void refresh()
- Description copied from interface:
IGenericComponent
- Update component's UI
- Specified by:
refresh in interface IGenericComponent- Overrides:
refresh in class GenericComponent
isCompact
public boolean isCompact()
- Specified by:
isCompact in interface IRadioButtonComponent
- See Also:
com.tssap.util.ui.reuse.radio.IRadiobuttonComponent#isCompact()
setCompact
public void setCompact(boolean compact)
- See Also:
com.tssap.util.ui.reuse.radio.IRadiobuttonComponent#setCompact(boolean)
setRadioChooser
public void setRadioChooser(IRadioChooser radioChooser,
int index)
- Specified by:
setRadioChooser in interface IRadioButtonComponent
- See Also:
IRadioButtonComponent.setRadioChooser(IRadioChooser, int)
getRadioChooser
public IRadioChooser getRadioChooser(int index)
- Specified by:
getRadioChooser in interface IRadioButtonComponent
- See Also:
com.tssap.util.ui.reuse.radio.IRadiobuttonComponent#getRadioChooser(int)
setRadioChoosers
public void setRadioChoosers(IRadioChooser[] radioChoosers)
- Specified by:
setRadioChoosers in interface IRadioButtonComponent
- See Also:
com.tssap.util.ui.reuse.radio.IRadiobuttonComponent#setRadioChoosers(IRadioChooser[])
getRadioChoosers
public IRadioChooser[] getRadioChoosers()
- Specified by:
getRadioChoosers in interface IRadioButtonComponent
- See Also:
com.tssap.util.ui.reuse.radio.IRadiobuttonComponent#getRadioChoosers()
getSelectionIndex
public int getSelectionIndex()
- Specified by:
getSelectionIndex in interface IRadioButtonComponent
- See Also:
com.tssap.util.ui.reuse.radio.IRadiobuttonComponent#getSelectionIndex()
setSelectionIndex
public void setSelectionIndex(int selectionIndex)
- Specified by:
setSelectionIndex in interface IRadioButtonComponent
- See Also:
com.tssap.util.ui.reuse.radio.IRadiobuttonComponent#setSelectionIndex(int)
setDeselectionIndex
public void setDeselectionIndex(int deselectionIndex)
- new method to deselect the opposite radiobutton.
Added setDeselectionIndex in order to get com.tssap.j2ee.ui.web.editor.internal.WebMappingPage -> updateContainer() working.
This might not be the best solution - other ideas to get the correct radio-button selections in URL Pattern / Servlet Name - radio buttons
working are welcome !!!
- Specified by:
setDeselectionIndex in interface IRadioButtonComponent
getUserGridNumOfColumns
public int getUserGridNumOfColumns()
- Description copied from interface:
IGridLayoutPaneContainer
- Returns number of columns for userArea given to method initContainer(IGridLayoutPane userArea)
- Specified by:
getUserGridNumOfColumns in interface IGridLayoutPaneContainer
- See Also:
IGridLayoutPaneContainer.getUserGridNumOfColumns()
isUserGridEqualColSize
public boolean isUserGridEqualColSize()
- Description copied from interface:
IGridLayoutPaneContainer
- Returns true if userArea given to method initContainer(IGridLayoutPane userArea) has to have equal column widths
- Specified by:
isUserGridEqualColSize in interface IGridLayoutPaneContainer
- See Also:
IGridLayoutPaneContainer.isUserGridEqualColSize()
getInitialRadioChoosers
public IRadioChooser[] getInitialRadioChoosers()
- Returns the initialRadioChoosers.
- Returns:
- IRadioChooser[]
setInitialRadioChoosers
public void setInitialRadioChoosers(IRadioChooser[] initialRadioChoosers)
- Sets the initialRadioChoosers.
- Parameters:
initialRadioChoosers - The initialRadioChoosers to set
setEnabled
public void setEnabled(boolean enabled)
- Description copied from interface:
IReuseable
- Set whether or not the component and all its
subcomponents are enabled.
- Specified by:
setEnabled in interface IReuseable- Overrides:
setEnabled in class GenericComponent
- See Also:
IReuseable.setEnabled(boolean)
setSelectorHasPushButton
public void setSelectorHasPushButton(boolean selectorHasPushButton)
- Sets the selectorHasPushButton.
Calling this method after having called createPartControl(..) will throw an exception!
- Specified by:
setSelectorHasPushButton in interface IRadioButtonComponent
- Parameters:
selectorHasPushButton - The selectorHasPushButton to set
setInitialSelectorHasPushButton
public void setInitialSelectorHasPushButton(boolean selectorHasPushButton)
- Sets the selectorHasPushButton.
- Parameters:
selectorHasPushButton - The selectorHasPushButton to set
Copyright © 2005 SAP AG. All Rights Reserved.