public int compare(ICFBamServerListFuncObj lhs, ICFBamServerListFuncObj rhs) { if (lhs == null) { if (rhs == null) { return (0); } else { return (-1); } } else if (rhs == null) { return (1); } else { String lhsValue = lhs.getObjQualifiedName(); String rhsValue = rhs.getObjQualifiedName(); if (lhsValue == null) { if (rhsValue == null) { return (0); } else { return (-1); } } else if (rhsValue == null) { return (1); } else { return (lhsValue.compareTo(rhsValue)); } } }
public void refreshMe() { Component cont = getParent(); while ((cont != null) && (!(cont instanceof JInternalFrame))) { cont = cont.getParent(); } if (cont != null) { if (!((JInternalFrame) cont).isClosed()) { Collection<ICFBamParamObj> dataCollection; ICFBamServerListFuncObj focus = getSwingFocusAsServerListFunc(); if (focus != null) { dataCollection = focus.getOptionalComponentsParams(swingIsInitializing); } else { dataCollection = null; } JPanel panel = getTabViewComponentsParamsListJPanel(); ICFBamSwingParamJPanelList jpList = (ICFBamSwingParamJPanelList) panel; jpList.setSwingDataCollection(dataCollection); } } }
public JPanel getTabViewComponentsParamsListJPanel() { if (tabViewComponentsParamsListJPanel == null) { Collection<ICFBamParamObj> dataCollection; ICFBamServerListFuncObj focus = getSwingFocusAsServerListFunc(); if (focus != null) { dataCollection = focus.getOptionalComponentsParams(swingIsInitializing); } else { dataCollection = null; } ICFBamServerMethodObj swingContainer; if ((focus != null) && (focus instanceof ICFBamServerMethodObj)) { swingContainer = (ICFBamServerMethodObj) focus; } else { swingContainer = null; } tabViewComponentsParamsListJPanel = swingSchema .getParamFactory() .newListJPanel( null, swingContainer, dataCollection, new RefreshComponentsParamsList(), true); } return (tabViewComponentsParamsListJPanel); }
public Object getValueAt(int row, int column) { if ((row < 0) || (column < -1)) { return (null); } if (arrayOfServerListFunc == null) { return (null); } int len = arrayOfServerListFunc.length; if (row >= len) { return (null); } ICFBamServerListFuncObj obj = arrayOfServerListFunc[row]; if (obj == null) { return (null); } Object retval; switch (column) { case COLID_ROW_HEADER: retval = obj; break; case COLID_OBJQUALIFIEDNAME: retval = obj.getObjQualifiedName(); break; case COLID_ID: retval = new Long(obj.getRequiredId()); break; case COLID_NAME: retval = obj.getRequiredName(); if (retval == null) { retval = ""; } break; case COLID_SHORTNAME: retval = obj.getOptionalShortName(); if (retval == null) { retval = ""; } break; case COLID_LABEL: retval = obj.getOptionalLabel(); if (retval == null) { retval = ""; } break; case COLID_SHORTDESCRIPTION: retval = obj.getOptionalShortDescription(); if (retval == null) { retval = ""; } break; case COLID_DESCRIPTION: retval = obj.getOptionalDescription(); if (retval == null) { retval = ""; } break; case COLID_SUFFIX: retval = obj.getOptionalSuffix(); if (retval == null) { retval = ""; } break; case COLID_DEFAULTVISIBILITY: retval = new Boolean(obj.getRequiredDefaultVisibility()); break; case COLID_ISINSTANCEMETHOD: retval = new Boolean(obj.getRequiredIsInstanceMethod()); break; case COLID_JMETHODBODY: retval = obj.getRequiredJMethodBody(); if (retval == null) { retval = ""; } break; case COLID_LOOKUP_DEFSCHEMA: retval = obj.getOptionalLookupDefSchema(); break; case COLID_LOOKUP_RETTABLE: retval = obj.getOptionalLookupRetTable(); break; default: retval = null; break; } return (retval); }