public void showAll() { // resetHiddenSiblingCommands(); for (int i = 0; i < componentNames.size(); i++) { ObjectEditor.setVisible(parentClass, componentNames.get(i), true); } adapter.getTopAdapter().refreshAttributes(parentClass); }
public void hide() { // if (adapter.getParentAdapter() == null) return; ObjectEditor.setVisible(parentClass, adapter.getPropertyName(), false); adapter.getTopAdapter().refreshAttributes(parentClass); // ObjectEditor.refreshAttributes(this, adapter.getParentAdapter().getPropertyClass()); }
public void invokeDynamicCommand(String theCommand) { lastGroupCommandSelected = null; displayedProperties = null; String propertyOrGroupName = getPropertyOrGroupName(theCommand).toLowerCase(); if (allSiblingCommands.contains(theCommand)) { ObjectEditor.setVisible(parentClass, propertyOrGroupName, true); adapter.getTopAdapter().refreshAttributes(parentClass); } else { lastGroupCommandSelected = theCommand; displayedProperties = projectionGroups.get(propertyOrGroupName); for (int i = 0; i < componentNames.size(); i++) { String nextComponent = componentNames.get(i); if (displayedProperties.contains(nextComponent)) ObjectEditor.setVisible(parentClass, nextComponent, true); else ObjectEditor.setVisible(parentClass, nextComponent, false); } adapter.getTopAdapter().refreshAttributes(parentClass); } }