usr/src/java/vpanels/panels/sharemgr/org/opensolaris/os/vp/panels/sharemgr/client/swing/MainControl.java
equal
deleted
inserted
replaced
79 // |
79 // |
80 // Control methods |
80 // Control methods |
81 // |
81 // |
82 |
82 |
83 @Override |
83 @Override |
84 public Navigable[] getForwardingPath() { |
|
85 List<GroupManagedObject> groups = |
|
86 getPanelDescriptor().getChildren(); |
|
87 |
|
88 if (!groups.isEmpty()) { |
|
89 return new Navigable[] { |
|
90 new SimpleNavigable(GroupTabbedControl.ID, null, |
|
91 GroupTabbedControl.PARAM_GROUP, groups.get(0).getId()) |
|
92 }; |
|
93 } |
|
94 |
|
95 return super.getForwardingPath(); |
|
96 } |
|
97 |
|
98 // |
|
99 // DefaultControl methods |
|
100 // |
|
101 |
|
102 @Override |
|
103 public void childStarted(Control child) { |
84 public void childStarted(Control child) { |
104 super.childStarted(child); |
85 super.childStarted(child); |
105 // Allow our ChangeableAggregator, which indirectly controls the enabled |
86 // Allow our ChangeableAggregator, which indirectly controls the enabled |
106 // state of the Apply/Okay/Reset buttons, to track outstanding changes |
87 // state of the Apply/Okay/Reset buttons, to track outstanding changes |
107 // in running child Controls. |
88 // in running child Controls. |
127 getComponent().getChangeableAggregator().removeChangeable( |
108 getComponent().getChangeableAggregator().removeChangeable( |
128 aggregator); |
109 aggregator); |
129 } |
110 } |
130 } |
111 } |
131 } |
112 } |
|
113 |
|
114 @Override |
|
115 public Navigable[] getForwardingPath() { |
|
116 List<GroupManagedObject> groups = |
|
117 getPanelDescriptor().getChildren(); |
|
118 |
|
119 if (!groups.isEmpty()) { |
|
120 return new Navigable[] { |
|
121 new SimpleNavigable(GroupTabbedControl.ID, null, |
|
122 GroupTabbedControl.PARAM_GROUP, groups.get(0).getId()) |
|
123 }; |
|
124 } |
|
125 |
|
126 return super.getForwardingPath(); |
|
127 } |
|
128 |
|
129 // |
|
130 // DefaultControl methods |
|
131 // |
132 |
132 |
133 @Override |
133 @Override |
134 protected void ensureChildrenCreated() { |
134 protected void ensureChildrenCreated() { |
135 if (children.size() == 0) { |
135 if (children.size() == 0) { |
136 SharemgrPanelDescriptor descriptor = getPanelDescriptor(); |
136 SharemgrPanelDescriptor descriptor = getPanelDescriptor(); |