if (action instanceof TestAction) { emitTestActionControl(out, action.getPermittedValues(), ad, isActionObject, actiondataFilter, refresh, nameformat, assetFilter); } else { emitSelect(out, action.getPermittedValues()); }
emitActionControl(out, action.getPermittedValues(), ad, isActionObject, actiondataFilter, refresh, nameformat, assetFilter);
        private void emitActionDataItem(PrintWriter out, ActionData ad, boolean isActionObject, boolean twoRows,                                         String actiondataFilter, int refresh, String nameformat, String assetFilter) {            Object av;            Object awv;            Action a, aw;            Action action;            Object lastActionValue;            Object prevActionValue;                        //Emit object type            if (isActionObject) {                out.print("   <TD>Action</TD>\n");                    action = ad.getAction();            } else {                out.print("   <TD>Wrapper</TD>\n");                    action = ad.getWrapper();            }                            if (action == null) {                 out.print("   <TD>NULL</TD>");                return;             }                        emitSelect(out, action.getPossibleValues());            emitModifiableSelect(out, action.getValuesOffered(), ad, isActionObject, actiondataFilter, refresh, nameformat, "SETPERMITTEDVALUES", "Set Permitted", true, assetFilter);            //If it's our TestAction object then we can set its value!            if (action instanceof TestAction) {                emitTestActionControl(out, action.getPermittedValues(), ad, isActionObject, actiondataFilter, refresh, nameformat, assetFilter);            } else { //we can't set the value so use this just to present them.               emitSelect(out, action.getPermittedValues());            }                                            if ( isActionObject ) { //emit value indicating if data has changed or was just added.                out.print("   <TD><TABLE>");                out.print("   "+ emitActionValue(action.getValue(), "<b>last:</b>"));    //last Action Value                out.print("   "+ emitActionValue(action.getPreviousValue(), "<b>prev:</b>"));    //prev Action Value                out.print("   </TABLE></TD>");                out.print("   <TD>"+getStatusString(ad.getActionState())+"</TD>");            } else { //emit wrapper data                out.print("   <TD><TABLE>");                out.print("   "+ emitActionValue(action.getValue(), "<b>last:</b>"));    //last Wrapper Value                out.print("   "+ emitActionValue(action.getPreviousValue(), "<b>prev:</b>"));    //prev Wrapper Value                out.print("   </TABLE></TD>");                out.print("   <TD>"+getStatusString(ad.getWrapperState())+"</TD>");            }        }