MaxCharacters action = ActionMgr.getAction(comp, MaxCharacters.class);
if (action != null) {
return action.getValue();
}
int max = 0;
ArrayColumn ac = (ArrayColumn)comp;
if ((ac.getCellEditor() != null)
&& (ac.getCellEditor() instanceof JTextComponent)){
Document doc = ((JTextComponent)ac.getCellEditor()).getDocument();
if ((doc != null) && (doc instanceof FixedLengthDocument)){
max = ((FixedLengthDocument)doc).getMaxLength();
}
} else {
max = ac.getMaxCharacters();
}
return max;
}