availableDecorator.aclFilter.setActive(true);
availableDecorator.excludeAtomicGroupsFilter.setActive(true);
availableSelection = availableDecorator.addSelectionManager(false);
availableDecorator.addSelectionPanel(true);
availableTable.addListener(new DynamicTableListener() {
public void onRowClicked(int rowIndex, JSONObject row, boolean isRightClick) {
availableSelection.toggleSelected(row);
}
public void onTableRefreshed() {}
});
availableSelection.addListener(new SelectionListener() {
public void onAdd(Collection<JSONObject> objects) {
for (JSONObject row : objects) {
selectRow(row);
}
selectionRefresh();
}
public void onRemove(Collection<JSONObject> objects) {
for (JSONObject row : objects) {
deselectRow(row);
}
selectionRefresh();
}
public void onClick(JSONValue id, String profile) {
for (JSONObject row : selectedHostData.getItems()) {
if (row.get("id").equals(id)) {
selectedHostData.removeItem(row);
row.put("profile", new JSONString(profile));
selectedHostData.addItem(row);
break;
}
}
}
});
selectedTable.addListener(new DynamicTableListener() {
public void onRowClicked(int rowIndex, JSONObject row, boolean isRightClick) {
if (isMetaEntry(row) || isOneTimeHost(row)) {
deselectRow(row);
selectionRefresh();
} else {