private void scan(JAXXTreeModel model, Item item) { TreePath path = model.getTreePath(item); if (item.isSelected() != isPathSelected(path)) { item.setSelected(!item.isSelected()); } List<Item> children = item.getChildren(); for (Item aChildren : children) { scan(model, aChildren); } } });
/** * Sets the spacing between components. Spacing is applied between components only, * not to the top or bottom of the container. * * @param spacing new spacing value */ public void setSpacing(int spacing) { int oldValue = getSpacing(); ((VBoxLayout) getLayout()).setSpacing(spacing); firePropertyChange(SPACING_PROPERTY, oldValue, spacing); revalidate(); }
public void setHorizontalAlignment(int horizontalAlignment) { int oldValue = getHorizontalAlignment(); ((VBoxLayout) getLayout()).setHorizontalAlignment(horizontalAlignment); firePropertyChange(HORIZONTAL_ALIGNMENT_PROPERTY, oldValue, horizontalAlignment); revalidate(); }
/** * Sets the spacing between components. Spacing is applied between components only, * not to the top or bottom of the container. * * @param spacing new spacing value */ public void setSpacing(int spacing) { int oldValue = getSpacing(); ((HBoxLayout) getLayout()).setSpacing(spacing); firePropertyChange(SPACING_PROPERTY, oldValue, spacing); revalidate(); }
public void setHorizontalAlignment(int horizontalAlignment) { int oldValue = getHorizontalAlignment(); ((HBoxLayout) getLayout()).setHorizontalAlignment(horizontalAlignment); firePropertyChange(HORIZONTAL_ALIGNMENT_PROPERTY, oldValue, horizontalAlignment); revalidate(); }
public void setVerticalAlignment(int verticalAlignment) { int oldValue = getVerticalAlignment(); ((HBoxLayout) getLayout()).setVerticalAlignment(verticalAlignment); firePropertyChange(VERTICAL_ALIGNMENT_PROPERTY, oldValue, verticalAlignment); revalidate(); }
private void addPropertyChangeListener(Item item, PropertyChangeListener listener) { item.addPropertyChangeListener(listener); List<Item> children = item.getChildren(); for (Item aChildren : children) { addPropertyChangeListener(aChildren, listener); } }
/** * Returns the spacing between components, in pixels. Spacing is applied between components only, * not to the top or bottom of the container. * * @return spacing between components */ public int getSpacing() { return ((HBoxLayout) getLayout()).getSpacing(); }
/** * Returns the spacing between components, in pixels. Spacing is applied between components only, * not to the top or bottom of the container. * * @return spacing between components */ public int getSpacing() { return ((VBoxLayout) getLayout()).getSpacing(); }
@Override public void processDataBinding() { setIcon(myHandler.updateIcon(isTargetVisible())); } });
public Item getRootItem() { if (getModel() instanceof JAXXTreeModel) { return ((JAXXTreeModel) getModel()).getRootItem(); } return null; }
@Override public void processDataBinding() { $MemoryStatusWidget0.setVisible( isShowMemoryStatus() ); } });
@Override public void processDataBinding() { $ClockWidget0.setVisible( isShowClock() ); } });
private void scan(JAXXTreeModel model, Item item) { TreePath path = model.getTreePath(item); if (item.isSelected() != isPathSelected(path)) { item.setSelected(!item.isSelected()); } List<Item> children = item.getChildren(); for (Item aChildren : children) { scan(model, aChildren); } } });
public void setHorizontalAlignment(int horizontalAlignment) { int oldValue = getHorizontalAlignment(); ((VBoxLayout) getLayout()).setHorizontalAlignment(horizontalAlignment); firePropertyChange(HORIZONTAL_ALIGNMENT_PROPERTY, oldValue, horizontalAlignment); revalidate(); }
/** * Sets the spacing between components. Spacing is applied between components only, * not to the top or bottom of the container. * * @param spacing new spacing value */ public void setSpacing(int spacing) { int oldValue = getSpacing(); ((HBoxLayout) getLayout()).setSpacing(spacing); firePropertyChange(SPACING_PROPERTY, oldValue, spacing); revalidate(); }
/** * Returns the spacing between components, in pixels. Spacing is applied between components only, * not to the top or bottom of the container. * * @return spacing between components */ public int getSpacing() { return ((HBoxLayout) getLayout()).getSpacing(); }