@JavaName isVisible
pcVisible :: PropertyChange -> <Proc> Boolean
- @JavaName isEnabled
+ @JavaName enabled
pcEnabled :: PropertyChange -> <Proc> Boolean
@JavaName setEnabled
@JavaName isChange
opIsChange :: UpdateOp -> <Proc> Boolean
+ @JavaName enabled
+ opEnabled :: UpdateOp -> <Proc> Boolean
+
@JavaName getResource
getOpResource :: UpdateOp -> <Proc> Maybe Resource
private boolean manualSelection = false;
protected boolean applied = false;
protected boolean visible = true;
+ protected boolean enabled = true;
private Collection<UpdateOp> parentOps = new ArrayList<UpdateOp>();
private Collection<UpdateOp> subOps = new ArrayList<UpdateOp>();
}
public boolean select(boolean select) {
+ if (!enabled)
+ return false;
+ if (!isChange())
+ return false;
boolean b = _select(select);
if (b)
manualSelection = true;
return true;
if (applied)
return false;
+ if (!isChange())
+ return false;
if (select) {
if (selectParentOps()) {
for (UpdateOp op : parentOps)
return visible;
}
+ /**
+ * Is change enabled. Disabled changes do not allow changing selected state.
+ * @return
+ */
+ public boolean enabled() {
+ return enabled;
+ }
+
+ public void setEnabled(boolean enabled) {
+ this.enabled = enabled;
+ }
+
public void apply(WriteGraph g) throws DatabaseException {
if (applied)