String[] getContactList() { java.util.List cl = new java.util.LinkedList(); StringTokenizer st = new StringTokenizer(contactList.getText()); StringBuffer sb = new StringBuffer(); StringBuffer dbg = new StringBuffer("test applet contactlist: "); while (st.hasMoreTokens()) { String loginId = st.nextToken().trim(); if (loginId.length() == 0) continue; dbg.append("'" + loginId + "' "); cl.add(loginId); sb.append(loginId).append('\n'); } CAT.info(dbg.toString()); contactList.setText(sb.toString()); return (String[]) cl.toArray(new String[cl.size()]); }
@Override protected void setUp() throws Exception { super.setUp(); myNestedFormLoader = new MyNestedFormLoader(); final String swingPath = PathUtil.getJarPathForClass(AbstractButton.class); java.util.List<URL> cp = new ArrayList<URL>(); appendPath(cp, JBTabbedPane.class); appendPath(cp, TIntObjectHashMap.class); appendPath(cp, UIUtil.class); appendPath(cp, SystemInfoRt.class); appendPath(cp, ApplicationManager.class); appendPath(cp, PathManager.getResourceRoot(this.getClass(), "/messages/UIBundle.properties")); appendPath(cp, PathManager.getResourceRoot(this.getClass(), "/RuntimeBundle.properties")); appendPath(cp, GridLayoutManager.class); // forms_rt appendPath(cp, DataProvider.class); myClassFinder = new MyClassFinder( new URL[] {new File(swingPath).toURI().toURL()}, cp.toArray(new URL[cp.size()])); }
/** * Gets child RNodes. * * @return IRNode[] */ public IRNode[] getRNodes() { java.util.List classNodes = new java.util.ArrayList(); IRNode[] nodes = new IRNode[classNodes.size()]; return ((IRNode[]) classNodes.toArray(nodes)); }
/** * Gets the IFtContentMixMixed property <b>content</b>. * * @return IFtContentMixMixed[] */ public IFtContentMixMixed[] getContent() { IFtContentMixMixed[] array = new IFtContentMixMixed[content_.size()]; return ((IFtContentMixMixed[]) content_.toArray(array)); }
/** * Gets the FtNotice property <b>notice</b>. * * @return FtNotice[] */ public FtNotice[] getNotice() { FtNotice[] array = new FtNotice[notice_.size()]; return ((FtNotice[]) notice_.toArray(array)); }
/** * Gets the FtPerson property <b>person</b>. * * @return FtPerson[] */ public FtPerson[] getPerson() { FtPerson[] array = new FtPerson[person_.size()]; return ((FtPerson[]) person_.toArray(array)); }
/** * Gets the FcTr property <b>tr</b>. * * @return FcTr[] */ public FcTr[] getTr() { FcTr[] array = new FcTr[tr_.size()]; return ((FcTr[]) tr_.toArray(array)); }