01: /*
02: * Custom.java
03: *
04: * Created on April 15, 2005, 4:24 PM
05: */
06:
07: package com.sun.portal.app.sharedevents.faces;
08:
09: import com.sun.web.ui.component.Checkbox;
10: import com.sun.web.ui.component.Icon;
11: import com.sun.web.ui.component.Table;
12:
13: import java.io.IOException;
14:
15: /**
16: * @author SaiSatish Vedam
17: */
18:
19: /**
20: * This class provides functionality for custom tables.
21: */
22: public class Custom {
23: /** Default constructor. */
24: public Custom() {
25: }
26:
27: /** Set disabled value for table actions. */
28: public boolean getDisabled() {
29: // If there is at least one checkbox selection, actions are enabled.
30: return (Checkbox.getSelected("selectGroup") == null);
31: }
32:
33: /** Get table component. */
34: public Table getTable() {
35: return null; // Let JSF create the component -- this bean is shared.
36: }
37:
38: /**
39: * Set table component.
40: *
41: * @param component The Table component.
42: */
43: public void setTable(Table table) throws IOException {
44: }
45: }
|