litesoft
@ 965
litesoft / trunk / GWT_Sandbox / FormEngine / src / com / temp / foundation / client / widget / table / cell / panel / ActionPanelItem.java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
package com.temp.foundation.client.widget.table.cell.panel; import com.google.gwt.user.client.ui.*; import com.temp.foundation.client.handler.*; /** * Individual "action" item that can be combined into a list (with separators). * * @param <T> * * @author ngchihou */ public abstract class ActionPanelItem<T> extends ActionPanelEntry<T> implements ActionHandler<T> { private String label; public ActionPanelItem( String label ) { this.label = label; } /** * Render the action item as a widget */ public Widget render( T obj ) { return new Label( renderLabel( obj ) ); } public boolean isEnabled( T obj ) { return true; } protected String renderLabel( T obj ) { return label; } } |
Commits for litesoft/trunk/GWT_Sandbox/FormEngine/src/com/temp/foundation/client/widget/table/cell/panel/ActionPanelItem.java
Revision | Author | Commited | Message |
---|---|---|---|
965 | GeorgeS | Fri 01 Aug, 2014 03:20:35 +0000 | ! |