rem
stringlengths 0
477k
| add
stringlengths 0
313k
| context
stringlengths 6
599k
|
---|---|---|
Mapper mapper = collectionDescriptor.getClassDescriptor().getMappingDescriptor().getMapper(); ClassDescriptor elementClassDescriptor = mapper.getClassDescriptor( ReflectionUtils.forName(collectionDescriptor.getElementClassName())); | ClassDescriptor elementClassDescriptor = mapper.getClassDescriptor( ReflectionUtils.forName(collectionDescriptor.getElementClassName())); | protected ManageableCollection doGetCollection(Session session, Node parentNode, CollectionDescriptor collectionDescriptor, Class collectionFieldClass) throws RepositoryException { Mapper mapper = collectionDescriptor.getClassDescriptor().getMappingDescriptor().getMapper(); ClassDescriptor elementClassDescriptor = mapper.getClassDescriptor( ReflectionUtils.forName(collectionDescriptor.getElementClassName())); ManageableCollection collection = ManageableCollectionUtil.getManageableCollection(collectionFieldClass); Class elementClass = ReflectionUtils.forName(collectionDescriptor.getElementClassName()); Iterator children = this.getCollectionNodes(session, parentNode, elementClassDescriptor.getJcrNodeType()).iterator(); while (children.hasNext()) { Node itemNode = (Node) children.next(); log.debug("Collection node found : " + itemNode.getPath()); Object item = objectConverter.getObject(session, elementClass, itemNode.getPath()); collection.addObject(item); } return collection; } |
Mapper mapper = collectionDescriptor.getClassDescriptor().getMappingDescriptor().getMapper(); ClassDescriptor elementClassDescriptor = mapper.getClassDescriptor( ReflectionUtils.forName(collectionDescriptor.getElementClassName())); | ClassDescriptor elementClassDescriptor = mapper.getClassDescriptor( ReflectionUtils.forName(collectionDescriptor.getElementClassName())); | protected void doInsertCollection(Session session, Node parentNode, CollectionDescriptor collectionDescriptor, ManageableCollection collection) { if (collection == null) { return; } Mapper mapper = collectionDescriptor.getClassDescriptor().getMappingDescriptor().getMapper(); ClassDescriptor elementClassDescriptor = mapper.getClassDescriptor( ReflectionUtils.forName(collectionDescriptor.getElementClassName())); Iterator collectionIterator = collection.getIterator(); int elementCollectionCount = 0; while (collectionIterator.hasNext()) { Object item = collectionIterator.next(); String elementJcrName = null; // If the element object has a unique id => the element jcr node name = the id value if (elementClassDescriptor.hasIdField()) { String idFieldName = elementClassDescriptor.getIdFieldDescriptor().getFieldName(); elementJcrName = ReflectionUtils.getNestedProperty(item, idFieldName).toString(); } else { elementCollectionCount++; elementJcrName = COLLECTION_ELEMENT_NAME + elementCollectionCount; } objectConverter.insert(session, parentNode, elementJcrName, item); } } |
if (searchJTextField.hasFocus()) { | if (userActivated) { | protected void paintComponent(final Graphics g) { super.paintComponent(g); final Graphics2D g2 = (Graphics2D) g.create(); try { if (searchJTextField.hasFocus()) { final Point leftLocation = leftJLabel.getLocation(); g2.drawImage(Images.BrowserTitle.HALO, leftLocation.x - 1, leftLocation.y - 1, null); } else { final Point leftLocation = searchJTextField.getLocation(); g2.drawImage(Images.BrowserTitle.SEARCH_BACKGROUND, leftLocation.x, leftLocation.y + 1, null); } } finally { g2.dispose(); } } |
repaint(); | private void searchJTextFieldFocusGained(final java.awt.event.FocusEvent e) {//GEN-FIRST:event_searchJTextFieldFocusGained // NOTE Perhaps reconsider this approach if we need to tab to this control. // Don't show the caret or repaint unless the mouse actually clicked in the JTextField if (searchJTextField.getCaret().isVisible()) { searchJTextField.getCaret().setVisible(false); } }//GEN-LAST:event_searchJTextFieldFocusGained |
|
userActivated = Boolean.FALSE; | private void searchJTextFieldFocusLost(final java.awt.event.FocusEvent e) {//GEN-FIRST:event_searchJTextFieldFocusLost if (null != getParent()) { // Note that repaint(), or getParent().repaint() on bounds, causes visible flicker drawing rectangle. getParent().repaint(); } }//GEN-LAST:event_searchJTextFieldFocusLost |
|
userActivated = Boolean.TRUE; | private void searchJTextFieldMouseClicked(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_searchJTextFieldMouseClicked searchJTextField.getCaret().setVisible(true); repaint(); }// GEN-LAST:event_searchJTextFieldMouseClicked |
|
setInput(AvatarId.SESSION_SEND_FORM, session.getSelectedDocumentId()); | public void displaySessionSendFormAvatar() { displayAvatar(WindowId.POPUP, AvatarId.SESSION_SEND_FORM); } |
|
logger.debug(newL); | public void moveBrowserWindow(final Point l) { final Point newL = mainWindow.getLocation(); newL.x += l.x; newL.y += l.y; logger.debug(newL); mainWindow.setLocation(newL); } |
|
setInput(AvatarId.SESSION_SEND_FORM, documentId); | public void selectDocument(final Long documentId) { session.setSelectedDocumentId(documentId); setInput(AvatarId.SESSION_SEND_FORM, documentId); } |
|
TrayNotification notification; for (final Iterator<TrayNotification> i = queue.iterator(); | Notification notification; for (final Iterator<Notification> i = queue.iterator(); | private void processQueue() { if (0 < getQueueTotal()) { synchronized (this) { TrayNotification notification; for (final Iterator<TrayNotification> i = queue.iterator(); i.hasNext();) { notification = i.next(); sysTray.display(notification); i.remove(); } } } } |
sysTray.display(notification); | NotifyPanel.display(notification); | private void processQueue() { if (0 < getQueueTotal()) { synchronized (this) { TrayNotification notification; for (final Iterator<TrayNotification> i = queue.iterator(); i.hasNext();) { notification = i.next(); sysTray.display(notification); i.remove(); } } } } |
super(); | public XMPPSessionImpl() { this.listeners = new ArrayList<SessionListener>(); this.xmppArchive = new XMPPArchive(this); this.xmppBackup = new XMPPBackup(this); this.xmppArtifact = new XMPPArtifact(this); this.xmppContainer = new XMPPContainer(this); this.xmppContact = new XMPPContact(this); this.xmppProfile = new XMPPProfile(this); this.xmppStream = new XMPPStream(this); this.xmppSystem = new XMPPSystem(this); this.xmppUser = new XMPPUser(this); } |
|
public void addPacketListener(final PacketListener listener, final PacketFilter filter) { logger.logApiId(); logger.logVariable("listener", listener); logger.logVariable("filter", filter); | public void addPacketListener(final PacketListener listener, final PacketFilter filter) { | public void addPacketListener(final PacketListener listener, final PacketFilter filter) { logger.logApiId(); logger.logVariable("listener", listener); logger.logVariable("filter", filter); xmppConnection.addPacketListener(listener, filter); } |
listeners.clear(); logger.logTraceId(); | synchronized (listeners) { listeners.clear(); } xmppArchive.clearListeners(); | public void clearListeners() { logger.logApiId(); listeners.clear(); logger.logTraceId(); xmppArtifact.clearListeners(); logger.logTraceId(); xmppContact.clearListeners(); logger.logTraceId(); xmppContainer.clearListeners(); logger.logTraceId(); xmppProfile.clearListeners(); logger.logTraceId(); xmppUser.clearListeners(); } |
logger.logTraceId(); | xmppBackup.clearListeners(); | public void clearListeners() { logger.logApiId(); listeners.clear(); logger.logTraceId(); xmppArtifact.clearListeners(); logger.logTraceId(); xmppContact.clearListeners(); logger.logTraceId(); xmppContainer.clearListeners(); logger.logTraceId(); xmppProfile.clearListeners(); logger.logTraceId(); xmppUser.clearListeners(); } |
logger.logTraceId(); | public void clearListeners() { logger.logApiId(); listeners.clear(); logger.logTraceId(); xmppArtifact.clearListeners(); logger.logTraceId(); xmppContact.clearListeners(); logger.logTraceId(); xmppContainer.clearListeners(); logger.logTraceId(); xmppProfile.clearListeners(); logger.logTraceId(); xmppUser.clearListeners(); } |
|
logger.logTraceId(); | xmppStream.clearListeners(); xmppSystem.clearListeners(); | public void clearListeners() { logger.logApiId(); listeners.clear(); logger.logTraceId(); xmppArtifact.clearListeners(); logger.logTraceId(); xmppContact.clearListeners(); logger.logTraceId(); xmppContainer.clearListeners(); logger.logTraceId(); xmppProfile.clearListeners(); logger.logTraceId(); xmppUser.clearListeners(); } |
logger.logApiId(); logger.logVariable("uniqueId", uniqueId); | public void createDraft(final UUID uniqueId) { logger.logApiId(); logger.logVariable("uniqueId", uniqueId); xmppArtifact.createDraft(uniqueId); } |
|
logger.logApiId(); | public JabberId getUserId() { return JabberIdBuilder.parseQualifiedJabberId(xmppConnection.getUser()); } |
|
return (null != xmppConnection | return null != xmppConnection | public Boolean isLoggedIn() { logger.logApiId(); return (null != xmppConnection && xmppConnection.isConnected() && xmppConnection.isAuthenticated()); } |
&& xmppConnection.isAuthenticated()); | && xmppConnection.isAuthenticated() && null != xmppAnonymousConnection && xmppAnonymousConnection.isConnected() && xmppAnonymousConnection.isAuthenticated(); | public Boolean isLoggedIn() { logger.logApiId(); return (null != xmppConnection && xmppConnection.isConnected() && xmppConnection.isAuthenticated()); } |
Map<DocumentVersion, String> documents, List<JabberId> publishTo, JabberId publishedBy, Calendar publishedOn) { try { xmppContainer.publish(container, documents, publishTo, publishedBy, publishedOn); } catch (final IOException iox) { throw translateError(iox); } | Map<DocumentVersion, String> documents, List<JabberId> publishTo, JabberId publishedBy, Calendar publishedOn) { xmppContainer.publish(container, documents, publishTo, publishedBy, publishedOn); | public void publish(ContainerVersion container, Map<DocumentVersion, String> documents, List<JabberId> publishTo, JabberId publishedBy, Calendar publishedOn) { try { xmppContainer.publish(container, documents, publishTo, publishedBy, publishedOn); } catch (final IOException iox) { throw translateError(iox); } } |
(getMac() && getMajorVersion() >= 5 || | (getMac() && getMajorVersion() >= 5) || | public boolean getCss2() { return getIe() && (getMac() && getMajorVersion() >= 5 || (getWin32() && getMajorVersion() >= 6) || getGecko() // && version >= ? || (getOpera() && getMajorVersion() >= 4) || (getSafari() && getMajorVersion() >= 2) || (getKonqueror() && getMajorVersion() >= 2); } public boolean getDom0() { return (getIe() && getMajorVersion() >= 3) || (getNetscape() && getMajorVersion() >= 2) || (getOpera() && getMajorVersion() >= 3) || getGecko() || getSafari() || getKonqueror(); } |
getGecko() | getGecko() || | public boolean getCss2() { return getIe() && (getMac() && getMajorVersion() >= 5 || (getWin32() && getMajorVersion() >= 6) || getGecko() // && version >= ? || (getOpera() && getMajorVersion() >= 4) || (getSafari() && getMajorVersion() >= 2) || (getKonqueror() && getMajorVersion() >= 2); } public boolean getDom0() { return (getIe() && getMajorVersion() >= 3) || (getNetscape() && getMajorVersion() >= 2) || (getOpera() && getMajorVersion() >= 3) || getGecko() || getSafari() || getKonqueror(); } |
public boolean getDom0() { return (getIe() && getMajorVersion() >= 3) || (getNetscape() && getMajorVersion() >= 2) || (getOpera() && getMajorVersion() >= 3) || getGecko() || getSafari() || getKonqueror(); } | public boolean getCss2() { return getIe() && (getMac() && getMajorVersion() >= 5 || (getWin32() && getMajorVersion() >= 6) || getGecko() // && version >= ? || (getOpera() && getMajorVersion() >= 4) || (getSafari() && getMajorVersion() >= 2) || (getKonqueror() && getMajorVersion() >= 2); } public boolean getDom0() { return (getIe() && getMajorVersion() >= 3) || (getNetscape() && getMajorVersion() >= 2) || (getOpera() && getMajorVersion() >= 3) || getGecko() || getSafari() || getKonqueror(); } |
|
selfAbsolute = false; selfParams = false; | public LinkTool() { uri = null; anchor = null; queryData = null; queryDataDelim = HTML_QUERY_DELIMITER; } |
|
copy.selfAbsolute = this.selfAbsolute; copy.selfParams = this.selfParams; | protected LinkTool duplicate() { try { return (LinkTool)this.clone(); } catch (CloneNotSupportedException e) { LOG.warn("Could not properly clone " + getClass() + " - " + e); // "clone" manually LinkTool copy; try { // one last try for a subclass instance... copy = (LinkTool)getClass().newInstance(); } catch (Exception ee) { // fine, we'll use the base class copy = new LinkTool(); } copy.application = this.application; copy.request = this.request; copy.response = this.response; copy.uri = this.uri; copy.anchor = this.anchor; copy.queryData = this.queryData; copy.queryDataDelim = this.queryDataDelim; return copy; } } |
|
out.append(ServletUtils.getPath(request)); | out.append(getRequestPath()); | public String getBaseRef() { StringBuffer out = new StringBuffer(); out.append(getContextURL()); out.append(ServletUtils.getPath(request)); return out.toString(); } |
return response.encodeURL(out.toString()); | String str = out.toString(); if (str.length() == 0) { return str; } else { return response.encodeURL(str); } | public String toString() { StringBuffer out = new StringBuffer(); if (uri != null) { out.append(uri); } String query = getQueryData(); if (query != null) { // Check if URI already contains query data if ( uri == null || uri.indexOf('?') < 0) { // no query data yet, start query data with '?' out.append('?'); } else { // there is already query data, use data delimiter out.append(queryDataDelim); } out.append(query); } if (anchor != null) { out.append('#'); out.append(encodeURL(anchor)); } // encode session ID into URL if sessions are used but cookies are // not supported return response.encodeURL(out.toString()); } |
return copyWith(request.getContextPath() + uri); | return copyWith(ctxPath + uri); | public LinkTool setRelative(String uri) { if (uri.startsWith("/")) { return copyWith(request.getContextPath() + uri); } else { return copyWith(request.getContextPath() + '/' + uri); } } |
return copyWith(request.getContextPath() + '/' + uri); } | return copyWith(ctxPath + '/' + uri); } | public LinkTool setRelative(String uri) { if (uri.startsWith("/")) { return copyWith(request.getContextPath() + uri); } else { return copyWith(request.getContextPath() + '/' + uri); } } |
dv.setSize(session.getLong("CONTENT_SIZE")); | private DocumentVersion extractDocumentVersion(final Session session) { final DocumentVersion dv = new DocumentVersion(); dv.setArtifactId(session.getLong("DOCUMENT_ID")); dv.setArtifactType(session.getTypeFromInteger("ARTIFACT_TYPE_ID")); dv.setArtifactUniqueId(session.getUniqueId("ARTIFACT_UNIQUE_ID")); dv.setChecksum(session.getString("CONTENT_CHECKSUM")); dv.setCompression(session.getInteger("CONTENT_COMPRESSION")); dv.setCreatedBy(session.getQualifiedUsername("CREATED_BY")); dv.setCreatedOn(session.getCalendar("CREATED_ON")); dv.setEncoding(session.getString("CONTENT_ENCODING")); dv.setName(session.getString("ARTIFACT_NAME")); dv.setUpdatedBy(session.getQualifiedUsername("UPDATED_BY")); dv.setUpdatedOn(session.getCalendar("UPDATED_ON")); dv.setVersionId(session.getLong("DOCUMENT_VERSION_ID")); dv.setMetaData(documentIO.getVersionMetaData(dv.getArtifactId(), dv.getVersionId())); return dv; } |
|
public IntTypeConverterImpl(ValueFactory factory) { super(factory); } | public IntTypeConverterImpl() { super(); } | public IntTypeConverterImpl(ValueFactory factory) { super(factory); } |
if(document.isClosed()) { jPopupMenu.add(new Reactivate(application)); } | private void triggerOnline(final Browser application, final JPopupMenu jPopupMenu, final MouseEvent e) { final Set<User> team = document.getTeam(); // MENU_ITEM Open jPopupMenu.add(new Open(application)); if(document.isClosed()) { // MENU_ITEM Delete jPopupMenu.addSeparator(); jPopupMenu.add(new Delete(application)); } else { if(document.isUrgent()) { final List<KeyRequest> keyRequests = document.getKeyRequests(); if(keyRequests.size() >= 1) { final Set<JabberId> requestedBySet = new HashSet<JabberId>(); for(final KeyRequest keyRequest : keyRequests) { // if a single user has requested more than once; we only // display one menu item. if(!requestedBySet.contains(keyRequest.getRequestedBy())) { // MENU_ITEM Accept Key Request ${RequestedBy} jPopupMenu.add(new AcceptKeyRequest(application, keyRequest.getId(), keyRequest.getRequestedByName())); requestedBySet.add(keyRequest.getRequestedBy()); } } // MENU_ITEM Decline All Key Requests jPopupMenu.add(new DeclineAllKeyRequests(application)); jPopupMenu.addSeparator(); } } // MENU_ITEM Share jPopupMenu.add(createShare(application)); if(document.isKeyHolder()) { if(0 < team.size()) { final JMenu jMenu = MenuFactory.create(getString("SendKey")); for(final User teamMember : team) jMenu.add(new SendKey(application, teamMember)); // MENU_ITEM Send Key ${TeamMember} jPopupMenu.add(jMenu); } if(!document.isWorkingVersionEqual()) { // MENU_ITEM Publish jPopupMenu.add(new Publish(application)); } // MENU_ITEM Close jPopupMenu.add(new Close(application)); } // MENU_ITEM Request Key if(!document.isKeyHolder()) { jPopupMenu.add(new RequestKey(application)); } // MENU_ITEM Rename if(!document.isDistributed()) { jPopupMenu.add(new Rename(application)); } if(document.isKeyHolder()) { if(!document.isDistributed()) { // MENU_ITEM Delete jPopupMenu.addSeparator(); jPopupMenu.add(new Delete(application)); } } else { // MENU_ITEM Delete jPopupMenu.addSeparator(); jPopupMenu.add(new Delete(application)); } } // DEBUG Document Menu Options if(e.isShiftDown()) { final Clipboard systemClipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); final ActionListener debugActionListener = new ActionListener() { public void actionPerformed(final ActionEvent e) { final StringSelection stringSelection = new StringSelection(((JComponent) e.getSource()).getClientProperty("COPY_ME").toString()); systemClipboard.setContents(stringSelection, null); } }; final JMenuItem idJMenuItem = new JMenuItem("Id - " + document.getId()); idJMenuItem.putClientProperty("COPY_ME", document.getId()); idJMenuItem.addActionListener(debugActionListener); final JMenuItem uidJMenuItem = new JMenuItem("Unique id - " + document.getUniqueId()); uidJMenuItem.putClientProperty("COPY_ME", document.getUniqueId()); uidJMenuItem.addActionListener(debugActionListener); jPopupMenu.addSeparator(); jPopupMenu.add(idJMenuItem); jPopupMenu.add(uidJMenuItem); } } |
|
logApiId(); | void handleSessionEstablished() { notifyListeners(new EventNotifier<SessionListener>() { public void notifyListener(final SessionListener listener) { listener.sessionEstablished(); } }); } |
|
public void handleSessionTerminated(final Exception cause) { | void handleSessionTerminated(final Exception cause) { | public void handleSessionTerminated(final Exception cause) { logApiId(); notifyListeners(new EventNotifier<SessionListener>() { public void notifyListener(final SessionListener listener) { listener.sessionTerminated(cause); } }); } |
final JabberId jabberId) throws SmackException; | final JabberId jabberId); | public void addTeamMember(final UUID artifactUniqueId, final JabberId jabberId) throws SmackException; |
final JabberId invitedBy) throws SmackException; | final JabberId invitedBy); | public void declineInvitation(final EMail invitedAs, final JabberId invitedBy) throws SmackException; |
final Credentials credentials) throws SmackException; | final Credentials credentials); | public void login(final Environment environment, final Credentials credentials) throws SmackException; |
public void logout() throws SmackException; | public void logout(); | public void logout() throws SmackException; |
final Calendar publishedOn) throws SmackException; | final Calendar publishedOn); | public void publish(final ContainerVersion container, final Map<DocumentVersion, InputStream> documents, final List<JabberId> publishTo, final JabberId publishedBy, final Calendar publishedOn) throws SmackException; |
public User readCurrentUser() throws SmackException; | public User readCurrentUser(); | public User readCurrentUser() throws SmackException; |
public Profile readProfile() throws SmackException; | public Profile readProfile(); | public Profile readProfile() throws SmackException; |
final Calendar sentOn) throws SmackException; | final Calendar sentOn); | public void send(final ContainerVersion container, final Map<DocumentVersion, InputStream> documents, final List<JabberId> sendTo, final JabberId sentBy, final Calendar sentOn) throws SmackException; |
case CONTAINER_DELETE: action = new com.thinkparity.browser.platform.action.container.Delete(browser); break; | private AbstractAction doCreateAction(final ActionId actionId) { logApiId(); debugVariable("actionId", actionId); final AbstractAction action; switch(actionId) { case ARTIFACT_APPLY_FLAG_SEEN: action = new com.thinkparity.browser.platform.action.artifact.ApplyFlagSeen(browser); break; case CONTACT_ACCEPT_INCOMING_INVITATION: action = new com.thinkparity.browser.platform.action.contact.AcceptIncomingInvitation(browser); break; case CONTACT_CREATE_INCOMING_INVITATION: action = new com.thinkparity.browser.platform.action.contact.CreateIncomingInvitation(browser); break; case CONTACT_DECLINE_INCOMING_INVITATION: action = new com.thinkparity.browser.platform.action.contact.DeclineIncomingInvitation(browser); break; case CONTACT_DELETE: action = new com.thinkparity.browser.platform.action.contact.Delete(browser); break; case CONTACT_DELETE_OUTGOING_INVITATION: action = new com.thinkparity.browser.platform.action.contact.DeleteOutgoingInvitation(browser); break; case CONTACT_READ: action = new com.thinkparity.browser.platform.action.contact.Read(browser); break; case CONTACT_SEARCH: action = new com.thinkparity.browser.platform.action.contact.Search(browser); break; case CONTAINER_ADD_DOCUMENT: action = new com.thinkparity.browser.platform.action.container.AddDocument(browser); break; case CONTAINER_CREATE: action = new com.thinkparity.browser.platform.action.container.Create(browser); break; case CONTAINER_DELETE: action = new com.thinkparity.browser.platform.action.container.Delete(browser); break; case CONTAINER_CREATE_DRAFT: action = new com.thinkparity.browser.platform.action.container.CreateDraft(browser); break; case CONTAINER_PUBLISH: action = new com.thinkparity.browser.platform.action.container.Publish(browser); break; case CONTAINER_REMOVE_DOCUMENT: action = new com.thinkparity.browser.platform.action.container.RemoveDocument(browser); break; case CONTAINER_SEARCH: action = new com.thinkparity.browser.platform.action.container.Search(browser); break; case DOCUMENT_OPEN: action = new com.thinkparity.browser.platform.action.document.Open(browser); break; case DOCUMENT_OPEN_VERSION: action = new com.thinkparity.browser.platform.action.document.OpenVersion(browser); break; case DOCUMENT_RENAME: action = new com.thinkparity.browser.platform.action.document.Rename(browser); break; case CONTAINER_REVERT_DOCUMENT: action = new com.thinkparity.browser.platform.action.container.RevertDocument(browser); break; case DOCUMENT_UPDATE_DRAFT: action = new com.thinkparity.browser.platform.action.document.UpdateDraft(browser); break; case PLATFORM_QUIT: action = new com.thinkparity.browser.platform.action.platform.Quit(platform); break; case PLATFORM_RESTART: action = new com.thinkparity.browser.platform.action.platform.Restart(platform); break; case PLATFORM_BROWSER_MOVE_TO_FRONT: action = new com.thinkparity.browser.platform.action.platform.browser.MoveToFront(platform); break; case PLATFORM_BROWSER_RESTORE: action = new com.thinkparity.browser.platform.action.platform.browser.Restore(platform); break; default: throw Assert.createUnreachable("UNKNOWN ACTION ID"); } register(action); return action; } |
|
break; case CONTAINER_DELETE: action = new com.thinkparity.browser.platform.action.container.Delete(browser); break; case CONTAINER_DELETE_DRAFT: action = new com.thinkparity.browser.platform.action.container.DeleteDraft(browser); | private AbstractAction doCreateAction(final ActionId actionId) { logApiId(); debugVariable("actionId", actionId); final AbstractAction action; switch(actionId) { case ARTIFACT_APPLY_FLAG_SEEN: action = new com.thinkparity.browser.platform.action.artifact.ApplyFlagSeen(browser); break; case CONTACT_ACCEPT_INCOMING_INVITATION: action = new com.thinkparity.browser.platform.action.contact.AcceptIncomingInvitation(browser); break; case CONTACT_CREATE_INCOMING_INVITATION: action = new com.thinkparity.browser.platform.action.contact.CreateIncomingInvitation(browser); break; case CONTACT_DECLINE_INCOMING_INVITATION: action = new com.thinkparity.browser.platform.action.contact.DeclineIncomingInvitation(browser); break; case CONTACT_DELETE: action = new com.thinkparity.browser.platform.action.contact.Delete(browser); break; case CONTACT_DELETE_OUTGOING_INVITATION: action = new com.thinkparity.browser.platform.action.contact.DeleteOutgoingInvitation(browser); break; case CONTACT_READ: action = new com.thinkparity.browser.platform.action.contact.Read(browser); break; case CONTACT_SEARCH: action = new com.thinkparity.browser.platform.action.contact.Search(browser); break; case CONTAINER_ADD_DOCUMENT: action = new com.thinkparity.browser.platform.action.container.AddDocument(browser); break; case CONTAINER_CREATE: action = new com.thinkparity.browser.platform.action.container.Create(browser); break; case CONTAINER_DELETE: action = new com.thinkparity.browser.platform.action.container.Delete(browser); break; case CONTAINER_CREATE_DRAFT: action = new com.thinkparity.browser.platform.action.container.CreateDraft(browser); break; case CONTAINER_PUBLISH: action = new com.thinkparity.browser.platform.action.container.Publish(browser); break; case CONTAINER_REMOVE_DOCUMENT: action = new com.thinkparity.browser.platform.action.container.RemoveDocument(browser); break; case CONTAINER_SEARCH: action = new com.thinkparity.browser.platform.action.container.Search(browser); break; case DOCUMENT_OPEN: action = new com.thinkparity.browser.platform.action.document.Open(browser); break; case DOCUMENT_OPEN_VERSION: action = new com.thinkparity.browser.platform.action.document.OpenVersion(browser); break; case DOCUMENT_RENAME: action = new com.thinkparity.browser.platform.action.document.Rename(browser); break; case CONTAINER_REVERT_DOCUMENT: action = new com.thinkparity.browser.platform.action.container.RevertDocument(browser); break; case DOCUMENT_UPDATE_DRAFT: action = new com.thinkparity.browser.platform.action.document.UpdateDraft(browser); break; case PLATFORM_QUIT: action = new com.thinkparity.browser.platform.action.platform.Quit(platform); break; case PLATFORM_RESTART: action = new com.thinkparity.browser.platform.action.platform.Restart(platform); break; case PLATFORM_BROWSER_MOVE_TO_FRONT: action = new com.thinkparity.browser.platform.action.platform.browser.MoveToFront(platform); break; case PLATFORM_BROWSER_RESTORE: action = new com.thinkparity.browser.platform.action.platform.browser.Restore(platform); break; default: throw Assert.createUnreachable("UNKNOWN ACTION ID"); } register(action); return action; } |
|
return MessageFormat.format("{0}.{1}", | return MessageFormat.format("{0}{1}", | public String exportFileName(final DocumentVersion version) { return MessageFormat.format("{0}.{1}", FileUtil.getName(version.getName()), FileUtil.getExtension(version.getName())); } |
contacts = readContacts(); | contacts = readContacts(teamMembers); | public CustomTableModel(final Long containerId) { super(); if (null==containerId) { // Likely true on first call to reload() teamMembers = null; contacts = null; publishTo = null; } else { teamMembers = readTeamMembers(containerId); contacts = readContacts(); publishTo = new ArrayList<Boolean>(getRowCount()); for (int i = 0; i < getRowCount(); i++) { if (i < teamMembers.size()) { publishTo.add(Boolean.TRUE); } else { publishTo.add(Boolean.FALSE); } } } } |
private List<Contact> readContacts() { | private List<Contact> readContacts(List<TeamMember> teamMembers) { | private List<Contact> readContacts() { final List<Contact> list = new LinkedList<Contact>(); final Contact[] array = (Contact[]) ((CompositeFlatSingleContentProvider) contentProvider).getElements(0, null); for (final Contact contact : array) { list.add(contact); } return list; } |
list.add(contact); | Boolean found = Boolean.FALSE; for (final TeamMember teamMember : teamMembers) { if (teamMember.getId().equals(contact.getId())) { found = Boolean.TRUE; break; } } if (!found) { list.add((Contact) contact); } | private List<Contact> readContacts() { final List<Contact> list = new LinkedList<Contact>(); final Contact[] array = (Contact[]) ((CompositeFlatSingleContentProvider) contentProvider).getElements(0, null); for (final Contact contact : array) { list.add(contact); } return list; } |
connectionJLabel = LabelFactory.create(getString("Empty"), BrowserConstants.Fonts.SmallFont); | connectionJLabel = LabelFactory.create(getString("Empty"), BrowserConstants.Fonts.StatusBar); | private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; javax.swing.JLabel separator1JLabel; javax.swing.JLabel separator2JLabel; connectionJLabel = LabelFactory.create(getString("Empty"), BrowserConstants.Fonts.SmallFont); separator1JLabel = new javax.swing.JLabel(); filterJLabel = LabelFactory.create(getString("Empty"), BrowserConstants.Fonts.SmallFont); separator2JLabel = new javax.swing.JLabel(); customJLabel = LabelFactory.create(getString("Empty"), BrowserConstants.Fonts.SmallFont); setLayout(new java.awt.GridBagLayout()); setOpaque(false); addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent e) { formMouseClicked(e); } }); connectionJLabel.setText("!Offline!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.insets = new java.awt.Insets(3, 4, 0, 4); add(connectionJLabel, gridBagConstraints); separator1JLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/StatusVSeparator.png")));gridBagConstraints = new java.awt.GridBagConstraints();gridBagConstraints.insets = new java.awt.Insets(3, 0, 0, 0); add(separator1JLabel,gridBagConstraints); filterJLabel.setText("!Filter: Off!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.insets = new java.awt.Insets(3, 4, 0, 4); add(filterJLabel, gridBagConstraints); separator2JLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/StatusVSeparator.png")));gridBagConstraints = new java.awt.GridBagConstraints();gridBagConstraints.insets = new java.awt.Insets(3, 0, 0, 0); add(separator2JLabel,gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(3, 4, 0, 4); add(customJLabel, gridBagConstraints); }// </editor-fold>//GEN-END:initComponents |
filterJLabel = LabelFactory.create(getString("Empty"), BrowserConstants.Fonts.SmallFont); | filterJLabel = LabelFactory.create(getString("Empty"), BrowserConstants.Fonts.StatusBar); | private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; javax.swing.JLabel separator1JLabel; javax.swing.JLabel separator2JLabel; connectionJLabel = LabelFactory.create(getString("Empty"), BrowserConstants.Fonts.SmallFont); separator1JLabel = new javax.swing.JLabel(); filterJLabel = LabelFactory.create(getString("Empty"), BrowserConstants.Fonts.SmallFont); separator2JLabel = new javax.swing.JLabel(); customJLabel = LabelFactory.create(getString("Empty"), BrowserConstants.Fonts.SmallFont); setLayout(new java.awt.GridBagLayout()); setOpaque(false); addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent e) { formMouseClicked(e); } }); connectionJLabel.setText("!Offline!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.insets = new java.awt.Insets(3, 4, 0, 4); add(connectionJLabel, gridBagConstraints); separator1JLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/StatusVSeparator.png")));gridBagConstraints = new java.awt.GridBagConstraints();gridBagConstraints.insets = new java.awt.Insets(3, 0, 0, 0); add(separator1JLabel,gridBagConstraints); filterJLabel.setText("!Filter: Off!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.insets = new java.awt.Insets(3, 4, 0, 4); add(filterJLabel, gridBagConstraints); separator2JLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/StatusVSeparator.png")));gridBagConstraints = new java.awt.GridBagConstraints();gridBagConstraints.insets = new java.awt.Insets(3, 0, 0, 0); add(separator2JLabel,gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(3, 4, 0, 4); add(customJLabel, gridBagConstraints); }// </editor-fold>//GEN-END:initComponents |
return getTemplate(request.getServletPath() ); | String path = (String)request.getAttribute("javax.servlet.include.servlet_path"); if (path == null) { path = request.getServletPath(); } return getTemplate(path); | protected Template handleRequest(HttpServletRequest request, HttpServletResponse response, Context ctx ) throws Exception { return getTemplate(request.getServletPath() ); } |
final JiveProperties jiveProperties = JiveProperties.getInstance(); logger.logInfo("{0}:{1}", "xmpp.auth.anonymous", jiveProperties.get("xmpp.auth.anonymous")); logger.logInfo("{0}:{1}", "xmpp.domain", jiveProperties.get("xmpp.domain")); logger.logInfo("{0}:{1}", "xmpp.server.socket.port", jiveProperties.get("xmpp.server.socket.port")); logger.logInfo("{0}:{1}", "xmpp.socket.plain.port", jiveProperties.get("xmpp.socket.plain.port")); logger.logInfo("{0}:{1}", "xmpp.socket.ssl.active", jiveProperties.get("xmpp.socket.ssl.active")); logger.logInfo("{0}:{1}", "xmpp.socket.ssl.keypass", jiveProperties.get("xmpp.socket.ssl.keypass")); logger.logInfo("{0}:{1}", "xmpp.socket.ssl.port", jiveProperties.get("xmpp.socket.ssl.port")); | public void initializePlugin(final PluginManager manager, final File pluginDirectory) { initializeLogging(); initializeHandlers(pluginDirectory); startStream(); startArchive(); final String message = MessageFormat.format("{0} - {1} - {2}", Version.getName(), Version.getMode(), Version.getBuildId()); logger.logInfo(message); System.out.println(message); } |
|
StreamModel.getModel().start(); | private void startStream() {// StreamModel.getModel().start(); } |
|
StreamModel.getModel().stop(); | private void stopStream() {// StreamModel.getModel().stop(); } |
|
createDraft(OpheliaTestUser.JUNIT, container); | createDraft(OpheliaTestUser.JUNIT, container.getId()); | protected void setUp() throws Exception { super.setUp(); login(OpheliaTestUser.JUNIT); login(OpheliaTestUser.JUNIT_X); final InternalContainerModel containerModel = getContainerModel(OpheliaTestUser.JUNIT); final Container container = createContainer(OpheliaTestUser.JUNIT, NAME); final List<Document> documents = addDocuments(OpheliaTestUser.JUNIT, container); publishToContacts(OpheliaTestUser.JUNIT, container); createDraft(OpheliaTestUser.JUNIT, container); // remove half of the documents for (int i = 0; i < documents.size(); i++) { if (1 == i % 2) containerModel.removeDocument(container.getId(), documents.get(i).getId()); } publishToTeam(OpheliaTestUser.JUNIT, container); // re-add half of the documents createDraft(OpheliaTestUser.JUNIT_X, container); final File[] inputFiles = getInputFiles(); for (int i = 0; i < inputFiles.length; i++) { if (1 == i % 2) { addDocument(OpheliaTestUser.JUNIT, container, inputFiles[i]); } } publishToTeam(OpheliaTestUser.JUNIT_X, container); datum = new Fixture(container, containerModel, getOutputDirectory()); } |
publishToTeam(OpheliaTestUser.JUNIT, container); | publishToTeam(OpheliaTestUser.JUNIT, container.getId()); | protected void setUp() throws Exception { super.setUp(); login(OpheliaTestUser.JUNIT); login(OpheliaTestUser.JUNIT_X); final InternalContainerModel containerModel = getContainerModel(OpheliaTestUser.JUNIT); final Container container = createContainer(OpheliaTestUser.JUNIT, NAME); final List<Document> documents = addDocuments(OpheliaTestUser.JUNIT, container); publishToContacts(OpheliaTestUser.JUNIT, container); createDraft(OpheliaTestUser.JUNIT, container); // remove half of the documents for (int i = 0; i < documents.size(); i++) { if (1 == i % 2) containerModel.removeDocument(container.getId(), documents.get(i).getId()); } publishToTeam(OpheliaTestUser.JUNIT, container); // re-add half of the documents createDraft(OpheliaTestUser.JUNIT_X, container); final File[] inputFiles = getInputFiles(); for (int i = 0; i < inputFiles.length; i++) { if (1 == i % 2) { addDocument(OpheliaTestUser.JUNIT, container, inputFiles[i]); } } publishToTeam(OpheliaTestUser.JUNIT_X, container); datum = new Fixture(container, containerModel, getOutputDirectory()); } |
createDraft(OpheliaTestUser.JUNIT_X, container); | createDraft(OpheliaTestUser.JUNIT_X, container.getId()); | protected void setUp() throws Exception { super.setUp(); login(OpheliaTestUser.JUNIT); login(OpheliaTestUser.JUNIT_X); final InternalContainerModel containerModel = getContainerModel(OpheliaTestUser.JUNIT); final Container container = createContainer(OpheliaTestUser.JUNIT, NAME); final List<Document> documents = addDocuments(OpheliaTestUser.JUNIT, container); publishToContacts(OpheliaTestUser.JUNIT, container); createDraft(OpheliaTestUser.JUNIT, container); // remove half of the documents for (int i = 0; i < documents.size(); i++) { if (1 == i % 2) containerModel.removeDocument(container.getId(), documents.get(i).getId()); } publishToTeam(OpheliaTestUser.JUNIT, container); // re-add half of the documents createDraft(OpheliaTestUser.JUNIT_X, container); final File[] inputFiles = getInputFiles(); for (int i = 0; i < inputFiles.length; i++) { if (1 == i % 2) { addDocument(OpheliaTestUser.JUNIT, container, inputFiles[i]); } } publishToTeam(OpheliaTestUser.JUNIT_X, container); datum = new Fixture(container, containerModel, getOutputDirectory()); } |
publishToTeam(OpheliaTestUser.JUNIT_X, container); | publishToTeam(OpheliaTestUser.JUNIT_X, container.getId()); | protected void setUp() throws Exception { super.setUp(); login(OpheliaTestUser.JUNIT); login(OpheliaTestUser.JUNIT_X); final InternalContainerModel containerModel = getContainerModel(OpheliaTestUser.JUNIT); final Container container = createContainer(OpheliaTestUser.JUNIT, NAME); final List<Document> documents = addDocuments(OpheliaTestUser.JUNIT, container); publishToContacts(OpheliaTestUser.JUNIT, container); createDraft(OpheliaTestUser.JUNIT, container); // remove half of the documents for (int i = 0; i < documents.size(); i++) { if (1 == i % 2) containerModel.removeDocument(container.getId(), documents.get(i).getId()); } publishToTeam(OpheliaTestUser.JUNIT, container); // re-add half of the documents createDraft(OpheliaTestUser.JUNIT_X, container); final File[] inputFiles = getInputFiles(); for (int i = 0; i < inputFiles.length; i++) { if (1 == i % 2) { addDocument(OpheliaTestUser.JUNIT, container, inputFiles[i]); } } publishToTeam(OpheliaTestUser.JUNIT_X, container); datum = new Fixture(container, containerModel, getOutputDirectory()); } |
private AbstractEastCell() { | private AbstractEastCell(final WestCell parent) { | private AbstractEastCell() { super(); setEnabled(isLatest()); } |
this.parent = parent; | private AbstractEastCell() { super(); setEnabled(isLatest()); } |
|
add(EmptyCell.getEmptyCell()); | add(new EmptyEastCell(this)); | private AbstractWestCell() { super(); setEnabled(isLatest()); add(EmptyCell.getEmptyCell()); } |
add(new ContainerVersionUserCell(this, teamMember)); | add(new ContainerTeamMemberCell(this, teamMember)); | private void addUserCells(final List<TeamMember> team) { for (final TeamMember teamMember : team) { add(new ContainerVersionUserCell(this, teamMember)); } } |
super(); this.parent = parent; | super(parent); | private ContainerDraftDocumentCell(final WestCell parent, final Document document, final DraftView draftView) { super(); this.parent = parent; this.document = document; setIcon(fileIconReader.getIcon(document)); switch (draftView.getDraft().getState(document)) { case ADDED: setAdditionalText(localization.getString("DocumentSummaryDraftAdded")); break; case MODIFIED: setAdditionalText(localization.getString("DocumentSummaryDraftModified", formatFuzzy(draftView.getFirstPublishedOn(document)))); break; case REMOVED: setAdditionalText(localization.getString("DocumentSummaryDraftRemoved", formatFuzzy(draftView.getFirstPublishedOn(document)))); break; case NONE: setAdditionalText(localization.getString("DocumentSummary", formatFuzzy(draftView.getFirstPublishedOn(document)))); break; default: throw Assert.createUnreachable("UNKNOWN DOCUMENT STATE"); } setText(document.getName()); } |
super(); this.parent = parent; | super(parent); | private ContainerVersionDocumentCell(final WestCell parent, final ContainerVersion containerVersion, final DocumentView documentView) { super(); this.parent = parent; this.delta = documentView.getDelta(); this.version = documentView.getVersion(); setIcon(fileIconReader.getIcon(version)); switch (delta) { case ADDED: case MODIFIED: case NONE: setAdditionalText(localization.getString("DocumentSummary", formatFuzzy(documentView.getFirstPublishedOn()))); break; case REMOVED: setAdditionalText(localization.getString("DocumentSummaryVersionRemoved", formatFuzzy(documentView.getFirstPublishedOn()), formatFuzzy(containerVersion.getCreatedOn()))); break; default: throw Assert.createUnreachable("UNKNOWN DOCUMENT STATE"); } setText(version.getName()); } |
add(new DraftDocumentCell(document)); | add(new DraftDocumentCell(this, document)); | private DraftCell() { super(); for (final Document document : draft.getDocuments()) { add(new DraftDocumentCell(document)); } } |
private DraftDocumentCell(final Document document) { super(); | private DraftDocumentCell(final WestCell parent, final Document document) { super(parent); | private DraftDocumentCell(final Document document) { super(); this.document = document; setIcon(fileIconReader.getIcon(document)); switch (draft.getState(document)) { case ADDED: case MODIFIED: case REMOVED: setAdditionalText(localization.getString(draft.getState(document))); break; case NONE: break; default: throw Assert.createUnreachable("UNKNOWN DOCUMENT STATE"); } setText(document.getName()); } |
super(); | super(parent); | private VersionDocumentCell(final WestCell parent, final DocumentVersion version, final Delta delta) { super(); this.delta = delta; this.parent = parent; this.version = version; setIcon(fileIconReader.getIcon(version)); switch (delta) { case ADDED: case MODIFIED: case REMOVED: setAdditionalText(localization.getString(delta)); break; case NONE: break; default: throw Assert.createUnreachable("UNKNOWN DOCUMENT STATE"); } setText(version.getName()); } |
this.parent = parent; | private VersionDocumentCell(final WestCell parent, final DocumentVersion version, final Delta delta) { super(); this.delta = delta; this.parent = parent; this.version = version; setIcon(fileIconReader.getIcon(version)); switch (delta) { case ADDED: case MODIFIED: case REMOVED: setAdditionalText(localization.getString(delta)); break; case NONE: break; default: throw Assert.createUnreachable("UNKNOWN DOCUMENT STATE"); } setText(version.getName()); } |
|
super(); this.parent = parent; | super(parent); | private VersionUserCell(final WestCell parent, final User user) { super(); this.parent = parent; this.user = user; setIcon(IMAGE_CACHE.read(TabPanelIcon.USER)); setText(user.getName()); setAdditionalText(localization.getString("UserPublished")); } |
public void mousePressed(java.awt.event.MouseEvent e) { collapsedJPanelMousePressed(e); } public void mouseReleased(java.awt.event.MouseEvent e) { collapsedJPanelMouseReleased(e); | public void mousePressed(java.awt.event.MouseEvent evt) { collapsedJPanelMousePressed(evt); } public void mouseReleased(java.awt.event.MouseEvent evt) { collapsedJPanelMouseReleased(evt); | private void initComponents() { javax.swing.JLabel eastFillerJLabel; java.awt.GridBagConstraints gridBagConstraints; javax.swing.JLabel westFillerJLabel; westListJPanel = new PanelCellListJPanel(westListModel, ListType.WEST_LIST); westFillerJLabel = new javax.swing.JLabel(); eastListJPanel = new PanelCellListJPanel(eastListModel, ListType.EAST_LIST); eastFillerJLabel = new javax.swing.JLabel(); setLayout(new java.awt.GridBagLayout()); setBorder(BORDER); collapsedJPanel.setLayout(new java.awt.GridBagLayout()); collapsedJPanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent e) { collapsedJPanelMousePressed(e); } public void mouseReleased(java.awt.event.MouseEvent e) { collapsedJPanelMouseReleased(e); } }); iconJLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/IconContainer.png"))); iconJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent e) { iconJLabelMouseEntered(e); } public void mouseExited(java.awt.event.MouseEvent e) { iconJLabelMouseExited(e); } public void mousePressed(java.awt.event.MouseEvent e) { iconJLabelMousePressed(e); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH; gridBagConstraints.insets = new java.awt.Insets(4, 32, 0, 5); collapsedJPanel.add(iconJLabel, gridBagConstraints); textJLabel.setText("!Package Text!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(5, 3, 4, 0); collapsedJPanel.add(textJLabel, gridBagConstraints); additionalTextJLabel.setForeground(Colors.Browser.List.INNER_LIST_SELECTION_BORDER); additionalTextJLabel.setText("!Package Additional Text!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(5, 5, 4, 0); collapsedJPanel.add(additionalTextJLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(collapsedJPanel, gridBagConstraints); expandedJPanel.setLayout(new java.awt.GridLayout(1, 0)); expandedJPanel.setOpaque(false); expandedJPanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent e) { expandedJPanelMousePressed(e); } public void mouseReleased(java.awt.event.MouseEvent e) { expandedJPanelMouseReleased(e); } }); westJPanel.setLayout(new java.awt.GridBagLayout()); westJPanel.setOpaque(false); westListJPanel.setLayout(new java.awt.GridBagLayout()); westListJPanel.setOpaque(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; westJPanel.add(westListJPanel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 0); westJPanel.add(westFillerJLabel, gridBagConstraints); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/ListItem_Messages"); // NOI18N westFirstJLabel.setText(bundle.getString("ContainerPanel.firstJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 5); westJPanel.add(westFirstJLabel, gridBagConstraints); westPreviousJLabel.setText(bundle.getString("ContainerPanel.previousJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westPreviousJLabel, gridBagConstraints); westCountJLabel.setText(bundle.getString("ContainerPanel.countJLabel")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westCountJLabel, gridBagConstraints); westNextJLabel.setText(bundle.getString("ContainerPanel.nextJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westNextJLabel, gridBagConstraints); westLastJLabel.setText(bundle.getString("ContainerPanel.lastJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westLastJLabel, gridBagConstraints); expandedJPanel.add(westJPanel); eastJPanel.setLayout(new java.awt.GridBagLayout()); eastJPanel.setOpaque(false); eastListJPanel.setLayout(new java.awt.GridBagLayout()); eastListJPanel.setOpaque(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; eastJPanel.add(eastListJPanel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 0); eastJPanel.add(eastFillerJLabel, gridBagConstraints); eastFirstJLabel.setText(bundle.getString("ContainerPanel.firstJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastFirstJLabel, gridBagConstraints); eastPreviousJLabel.setText(bundle.getString("ContainerPanel.previousJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastPreviousJLabel, gridBagConstraints); eastCountJLabel.setText(bundle.getString("ContainerPanel.countJLabel")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastCountJLabel, gridBagConstraints); eastNextJLabel.setText(bundle.getString("ContainerPanel.nextJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastNextJLabel, gridBagConstraints); eastLastJLabel.setText(bundle.getString("ContainerPanel.lastJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastLastJLabel, gridBagConstraints); expandedJPanel.add(eastJPanel); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(expandedJPanel, gridBagConstraints); }// </editor-fold>//GEN-END:initComponents |
public void mouseEntered(java.awt.event.MouseEvent e) { iconJLabelMouseEntered(e); } public void mouseExited(java.awt.event.MouseEvent e) { iconJLabelMouseExited(e); } public void mousePressed(java.awt.event.MouseEvent e) { iconJLabelMousePressed(e); | public void mouseEntered(java.awt.event.MouseEvent evt) { iconJLabelMouseEntered(evt); } public void mouseExited(java.awt.event.MouseEvent evt) { iconJLabelMouseExited(evt); } public void mousePressed(java.awt.event.MouseEvent evt) { iconJLabelMousePressed(evt); | private void initComponents() { javax.swing.JLabel eastFillerJLabel; java.awt.GridBagConstraints gridBagConstraints; javax.swing.JLabel westFillerJLabel; westListJPanel = new PanelCellListJPanel(westListModel, ListType.WEST_LIST); westFillerJLabel = new javax.swing.JLabel(); eastListJPanel = new PanelCellListJPanel(eastListModel, ListType.EAST_LIST); eastFillerJLabel = new javax.swing.JLabel(); setLayout(new java.awt.GridBagLayout()); setBorder(BORDER); collapsedJPanel.setLayout(new java.awt.GridBagLayout()); collapsedJPanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent e) { collapsedJPanelMousePressed(e); } public void mouseReleased(java.awt.event.MouseEvent e) { collapsedJPanelMouseReleased(e); } }); iconJLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/IconContainer.png"))); iconJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent e) { iconJLabelMouseEntered(e); } public void mouseExited(java.awt.event.MouseEvent e) { iconJLabelMouseExited(e); } public void mousePressed(java.awt.event.MouseEvent e) { iconJLabelMousePressed(e); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH; gridBagConstraints.insets = new java.awt.Insets(4, 32, 0, 5); collapsedJPanel.add(iconJLabel, gridBagConstraints); textJLabel.setText("!Package Text!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(5, 3, 4, 0); collapsedJPanel.add(textJLabel, gridBagConstraints); additionalTextJLabel.setForeground(Colors.Browser.List.INNER_LIST_SELECTION_BORDER); additionalTextJLabel.setText("!Package Additional Text!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(5, 5, 4, 0); collapsedJPanel.add(additionalTextJLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(collapsedJPanel, gridBagConstraints); expandedJPanel.setLayout(new java.awt.GridLayout(1, 0)); expandedJPanel.setOpaque(false); expandedJPanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent e) { expandedJPanelMousePressed(e); } public void mouseReleased(java.awt.event.MouseEvent e) { expandedJPanelMouseReleased(e); } }); westJPanel.setLayout(new java.awt.GridBagLayout()); westJPanel.setOpaque(false); westListJPanel.setLayout(new java.awt.GridBagLayout()); westListJPanel.setOpaque(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; westJPanel.add(westListJPanel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 0); westJPanel.add(westFillerJLabel, gridBagConstraints); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/ListItem_Messages"); // NOI18N westFirstJLabel.setText(bundle.getString("ContainerPanel.firstJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 5); westJPanel.add(westFirstJLabel, gridBagConstraints); westPreviousJLabel.setText(bundle.getString("ContainerPanel.previousJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westPreviousJLabel, gridBagConstraints); westCountJLabel.setText(bundle.getString("ContainerPanel.countJLabel")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westCountJLabel, gridBagConstraints); westNextJLabel.setText(bundle.getString("ContainerPanel.nextJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westNextJLabel, gridBagConstraints); westLastJLabel.setText(bundle.getString("ContainerPanel.lastJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westLastJLabel, gridBagConstraints); expandedJPanel.add(westJPanel); eastJPanel.setLayout(new java.awt.GridBagLayout()); eastJPanel.setOpaque(false); eastListJPanel.setLayout(new java.awt.GridBagLayout()); eastListJPanel.setOpaque(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; eastJPanel.add(eastListJPanel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 0); eastJPanel.add(eastFillerJLabel, gridBagConstraints); eastFirstJLabel.setText(bundle.getString("ContainerPanel.firstJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastFirstJLabel, gridBagConstraints); eastPreviousJLabel.setText(bundle.getString("ContainerPanel.previousJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastPreviousJLabel, gridBagConstraints); eastCountJLabel.setText(bundle.getString("ContainerPanel.countJLabel")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastCountJLabel, gridBagConstraints); eastNextJLabel.setText(bundle.getString("ContainerPanel.nextJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastNextJLabel, gridBagConstraints); eastLastJLabel.setText(bundle.getString("ContainerPanel.lastJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastLastJLabel, gridBagConstraints); expandedJPanel.add(eastJPanel); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(expandedJPanel, gridBagConstraints); }// </editor-fold>//GEN-END:initComponents |
public void mousePressed(java.awt.event.MouseEvent e) { expandedJPanelMousePressed(e); } public void mouseReleased(java.awt.event.MouseEvent e) { expandedJPanelMouseReleased(e); | public void mousePressed(java.awt.event.MouseEvent evt) { expandedJPanelMousePressed(evt); } public void mouseReleased(java.awt.event.MouseEvent evt) { expandedJPanelMouseReleased(evt); | private void initComponents() { javax.swing.JLabel eastFillerJLabel; java.awt.GridBagConstraints gridBagConstraints; javax.swing.JLabel westFillerJLabel; westListJPanel = new PanelCellListJPanel(westListModel, ListType.WEST_LIST); westFillerJLabel = new javax.swing.JLabel(); eastListJPanel = new PanelCellListJPanel(eastListModel, ListType.EAST_LIST); eastFillerJLabel = new javax.swing.JLabel(); setLayout(new java.awt.GridBagLayout()); setBorder(BORDER); collapsedJPanel.setLayout(new java.awt.GridBagLayout()); collapsedJPanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent e) { collapsedJPanelMousePressed(e); } public void mouseReleased(java.awt.event.MouseEvent e) { collapsedJPanelMouseReleased(e); } }); iconJLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/IconContainer.png"))); iconJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent e) { iconJLabelMouseEntered(e); } public void mouseExited(java.awt.event.MouseEvent e) { iconJLabelMouseExited(e); } public void mousePressed(java.awt.event.MouseEvent e) { iconJLabelMousePressed(e); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH; gridBagConstraints.insets = new java.awt.Insets(4, 32, 0, 5); collapsedJPanel.add(iconJLabel, gridBagConstraints); textJLabel.setText("!Package Text!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(5, 3, 4, 0); collapsedJPanel.add(textJLabel, gridBagConstraints); additionalTextJLabel.setForeground(Colors.Browser.List.INNER_LIST_SELECTION_BORDER); additionalTextJLabel.setText("!Package Additional Text!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(5, 5, 4, 0); collapsedJPanel.add(additionalTextJLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(collapsedJPanel, gridBagConstraints); expandedJPanel.setLayout(new java.awt.GridLayout(1, 0)); expandedJPanel.setOpaque(false); expandedJPanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent e) { expandedJPanelMousePressed(e); } public void mouseReleased(java.awt.event.MouseEvent e) { expandedJPanelMouseReleased(e); } }); westJPanel.setLayout(new java.awt.GridBagLayout()); westJPanel.setOpaque(false); westListJPanel.setLayout(new java.awt.GridBagLayout()); westListJPanel.setOpaque(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; westJPanel.add(westListJPanel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 0); westJPanel.add(westFillerJLabel, gridBagConstraints); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/ListItem_Messages"); // NOI18N westFirstJLabel.setText(bundle.getString("ContainerPanel.firstJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 5); westJPanel.add(westFirstJLabel, gridBagConstraints); westPreviousJLabel.setText(bundle.getString("ContainerPanel.previousJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westPreviousJLabel, gridBagConstraints); westCountJLabel.setText(bundle.getString("ContainerPanel.countJLabel")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westCountJLabel, gridBagConstraints); westNextJLabel.setText(bundle.getString("ContainerPanel.nextJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westNextJLabel, gridBagConstraints); westLastJLabel.setText(bundle.getString("ContainerPanel.lastJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westLastJLabel, gridBagConstraints); expandedJPanel.add(westJPanel); eastJPanel.setLayout(new java.awt.GridBagLayout()); eastJPanel.setOpaque(false); eastListJPanel.setLayout(new java.awt.GridBagLayout()); eastListJPanel.setOpaque(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; eastJPanel.add(eastListJPanel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 0); eastJPanel.add(eastFillerJLabel, gridBagConstraints); eastFirstJLabel.setText(bundle.getString("ContainerPanel.firstJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastFirstJLabel, gridBagConstraints); eastPreviousJLabel.setText(bundle.getString("ContainerPanel.previousJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastPreviousJLabel, gridBagConstraints); eastCountJLabel.setText(bundle.getString("ContainerPanel.countJLabel")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastCountJLabel, gridBagConstraints); eastNextJLabel.setText(bundle.getString("ContainerPanel.nextJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastNextJLabel, gridBagConstraints); eastLastJLabel.setText(bundle.getString("ContainerPanel.lastJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastLastJLabel, gridBagConstraints); expandedJPanel.add(eastJPanel); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(expandedJPanel, gridBagConstraints); }// </editor-fold>//GEN-END:initComponents |
java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/ListItem_Messages"); westFirstJLabel.setText(bundle.getString("ContainerPanel.firstJLabelWest")); | westFirstJLabel.setText(java.util.ResourceBundle.getBundle("localization/ListItem_Messages").getString("ContainerPanel.firstJLabelWest")); | private void initComponents() { javax.swing.JLabel eastFillerJLabel; java.awt.GridBagConstraints gridBagConstraints; javax.swing.JLabel westFillerJLabel; westListJPanel = new PanelCellListJPanel(westListModel, ListType.WEST_LIST); westFillerJLabel = new javax.swing.JLabel(); eastListJPanel = new PanelCellListJPanel(eastListModel, ListType.EAST_LIST); eastFillerJLabel = new javax.swing.JLabel(); setLayout(new java.awt.GridBagLayout()); setBorder(BORDER); collapsedJPanel.setLayout(new java.awt.GridBagLayout()); collapsedJPanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent e) { collapsedJPanelMousePressed(e); } public void mouseReleased(java.awt.event.MouseEvent e) { collapsedJPanelMouseReleased(e); } }); iconJLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/IconContainer.png"))); iconJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent e) { iconJLabelMouseEntered(e); } public void mouseExited(java.awt.event.MouseEvent e) { iconJLabelMouseExited(e); } public void mousePressed(java.awt.event.MouseEvent e) { iconJLabelMousePressed(e); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH; gridBagConstraints.insets = new java.awt.Insets(4, 32, 0, 5); collapsedJPanel.add(iconJLabel, gridBagConstraints); textJLabel.setText("!Package Text!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(5, 3, 4, 0); collapsedJPanel.add(textJLabel, gridBagConstraints); additionalTextJLabel.setForeground(Colors.Browser.List.INNER_LIST_SELECTION_BORDER); additionalTextJLabel.setText("!Package Additional Text!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(5, 5, 4, 0); collapsedJPanel.add(additionalTextJLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(collapsedJPanel, gridBagConstraints); expandedJPanel.setLayout(new java.awt.GridLayout(1, 0)); expandedJPanel.setOpaque(false); expandedJPanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent e) { expandedJPanelMousePressed(e); } public void mouseReleased(java.awt.event.MouseEvent e) { expandedJPanelMouseReleased(e); } }); westJPanel.setLayout(new java.awt.GridBagLayout()); westJPanel.setOpaque(false); westListJPanel.setLayout(new java.awt.GridBagLayout()); westListJPanel.setOpaque(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; westJPanel.add(westListJPanel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 0); westJPanel.add(westFillerJLabel, gridBagConstraints); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/ListItem_Messages"); // NOI18N westFirstJLabel.setText(bundle.getString("ContainerPanel.firstJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 5); westJPanel.add(westFirstJLabel, gridBagConstraints); westPreviousJLabel.setText(bundle.getString("ContainerPanel.previousJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westPreviousJLabel, gridBagConstraints); westCountJLabel.setText(bundle.getString("ContainerPanel.countJLabel")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westCountJLabel, gridBagConstraints); westNextJLabel.setText(bundle.getString("ContainerPanel.nextJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westNextJLabel, gridBagConstraints); westLastJLabel.setText(bundle.getString("ContainerPanel.lastJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westLastJLabel, gridBagConstraints); expandedJPanel.add(westJPanel); eastJPanel.setLayout(new java.awt.GridBagLayout()); eastJPanel.setOpaque(false); eastListJPanel.setLayout(new java.awt.GridBagLayout()); eastListJPanel.setOpaque(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; eastJPanel.add(eastListJPanel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 0); eastJPanel.add(eastFillerJLabel, gridBagConstraints); eastFirstJLabel.setText(bundle.getString("ContainerPanel.firstJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastFirstJLabel, gridBagConstraints); eastPreviousJLabel.setText(bundle.getString("ContainerPanel.previousJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastPreviousJLabel, gridBagConstraints); eastCountJLabel.setText(bundle.getString("ContainerPanel.countJLabel")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastCountJLabel, gridBagConstraints); eastNextJLabel.setText(bundle.getString("ContainerPanel.nextJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastNextJLabel, gridBagConstraints); eastLastJLabel.setText(bundle.getString("ContainerPanel.lastJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastLastJLabel, gridBagConstraints); expandedJPanel.add(eastJPanel); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(expandedJPanel, gridBagConstraints); }// </editor-fold>//GEN-END:initComponents |
westPreviousJLabel.setText(bundle.getString("ContainerPanel.previousJLabelWest")); | westPreviousJLabel.setText(java.util.ResourceBundle.getBundle("localization/ListItem_Messages").getString("ContainerPanel.previousJLabelWest")); | private void initComponents() { javax.swing.JLabel eastFillerJLabel; java.awt.GridBagConstraints gridBagConstraints; javax.swing.JLabel westFillerJLabel; westListJPanel = new PanelCellListJPanel(westListModel, ListType.WEST_LIST); westFillerJLabel = new javax.swing.JLabel(); eastListJPanel = new PanelCellListJPanel(eastListModel, ListType.EAST_LIST); eastFillerJLabel = new javax.swing.JLabel(); setLayout(new java.awt.GridBagLayout()); setBorder(BORDER); collapsedJPanel.setLayout(new java.awt.GridBagLayout()); collapsedJPanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent e) { collapsedJPanelMousePressed(e); } public void mouseReleased(java.awt.event.MouseEvent e) { collapsedJPanelMouseReleased(e); } }); iconJLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/IconContainer.png"))); iconJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent e) { iconJLabelMouseEntered(e); } public void mouseExited(java.awt.event.MouseEvent e) { iconJLabelMouseExited(e); } public void mousePressed(java.awt.event.MouseEvent e) { iconJLabelMousePressed(e); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH; gridBagConstraints.insets = new java.awt.Insets(4, 32, 0, 5); collapsedJPanel.add(iconJLabel, gridBagConstraints); textJLabel.setText("!Package Text!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(5, 3, 4, 0); collapsedJPanel.add(textJLabel, gridBagConstraints); additionalTextJLabel.setForeground(Colors.Browser.List.INNER_LIST_SELECTION_BORDER); additionalTextJLabel.setText("!Package Additional Text!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(5, 5, 4, 0); collapsedJPanel.add(additionalTextJLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(collapsedJPanel, gridBagConstraints); expandedJPanel.setLayout(new java.awt.GridLayout(1, 0)); expandedJPanel.setOpaque(false); expandedJPanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent e) { expandedJPanelMousePressed(e); } public void mouseReleased(java.awt.event.MouseEvent e) { expandedJPanelMouseReleased(e); } }); westJPanel.setLayout(new java.awt.GridBagLayout()); westJPanel.setOpaque(false); westListJPanel.setLayout(new java.awt.GridBagLayout()); westListJPanel.setOpaque(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; westJPanel.add(westListJPanel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 0); westJPanel.add(westFillerJLabel, gridBagConstraints); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/ListItem_Messages"); // NOI18N westFirstJLabel.setText(bundle.getString("ContainerPanel.firstJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 5); westJPanel.add(westFirstJLabel, gridBagConstraints); westPreviousJLabel.setText(bundle.getString("ContainerPanel.previousJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westPreviousJLabel, gridBagConstraints); westCountJLabel.setText(bundle.getString("ContainerPanel.countJLabel")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westCountJLabel, gridBagConstraints); westNextJLabel.setText(bundle.getString("ContainerPanel.nextJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westNextJLabel, gridBagConstraints); westLastJLabel.setText(bundle.getString("ContainerPanel.lastJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westLastJLabel, gridBagConstraints); expandedJPanel.add(westJPanel); eastJPanel.setLayout(new java.awt.GridBagLayout()); eastJPanel.setOpaque(false); eastListJPanel.setLayout(new java.awt.GridBagLayout()); eastListJPanel.setOpaque(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; eastJPanel.add(eastListJPanel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 0); eastJPanel.add(eastFillerJLabel, gridBagConstraints); eastFirstJLabel.setText(bundle.getString("ContainerPanel.firstJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastFirstJLabel, gridBagConstraints); eastPreviousJLabel.setText(bundle.getString("ContainerPanel.previousJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastPreviousJLabel, gridBagConstraints); eastCountJLabel.setText(bundle.getString("ContainerPanel.countJLabel")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastCountJLabel, gridBagConstraints); eastNextJLabel.setText(bundle.getString("ContainerPanel.nextJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastNextJLabel, gridBagConstraints); eastLastJLabel.setText(bundle.getString("ContainerPanel.lastJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastLastJLabel, gridBagConstraints); expandedJPanel.add(eastJPanel); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(expandedJPanel, gridBagConstraints); }// </editor-fold>//GEN-END:initComponents |
westCountJLabel.setText(bundle.getString("ContainerPanel.countJLabel")); | westCountJLabel.setText(java.util.ResourceBundle.getBundle("localization/ListItem_Messages").getString("ContainerPanel.countJLabel")); | private void initComponents() { javax.swing.JLabel eastFillerJLabel; java.awt.GridBagConstraints gridBagConstraints; javax.swing.JLabel westFillerJLabel; westListJPanel = new PanelCellListJPanel(westListModel, ListType.WEST_LIST); westFillerJLabel = new javax.swing.JLabel(); eastListJPanel = new PanelCellListJPanel(eastListModel, ListType.EAST_LIST); eastFillerJLabel = new javax.swing.JLabel(); setLayout(new java.awt.GridBagLayout()); setBorder(BORDER); collapsedJPanel.setLayout(new java.awt.GridBagLayout()); collapsedJPanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent e) { collapsedJPanelMousePressed(e); } public void mouseReleased(java.awt.event.MouseEvent e) { collapsedJPanelMouseReleased(e); } }); iconJLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/IconContainer.png"))); iconJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent e) { iconJLabelMouseEntered(e); } public void mouseExited(java.awt.event.MouseEvent e) { iconJLabelMouseExited(e); } public void mousePressed(java.awt.event.MouseEvent e) { iconJLabelMousePressed(e); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH; gridBagConstraints.insets = new java.awt.Insets(4, 32, 0, 5); collapsedJPanel.add(iconJLabel, gridBagConstraints); textJLabel.setText("!Package Text!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(5, 3, 4, 0); collapsedJPanel.add(textJLabel, gridBagConstraints); additionalTextJLabel.setForeground(Colors.Browser.List.INNER_LIST_SELECTION_BORDER); additionalTextJLabel.setText("!Package Additional Text!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(5, 5, 4, 0); collapsedJPanel.add(additionalTextJLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(collapsedJPanel, gridBagConstraints); expandedJPanel.setLayout(new java.awt.GridLayout(1, 0)); expandedJPanel.setOpaque(false); expandedJPanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent e) { expandedJPanelMousePressed(e); } public void mouseReleased(java.awt.event.MouseEvent e) { expandedJPanelMouseReleased(e); } }); westJPanel.setLayout(new java.awt.GridBagLayout()); westJPanel.setOpaque(false); westListJPanel.setLayout(new java.awt.GridBagLayout()); westListJPanel.setOpaque(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; westJPanel.add(westListJPanel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 0); westJPanel.add(westFillerJLabel, gridBagConstraints); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/ListItem_Messages"); // NOI18N westFirstJLabel.setText(bundle.getString("ContainerPanel.firstJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 5); westJPanel.add(westFirstJLabel, gridBagConstraints); westPreviousJLabel.setText(bundle.getString("ContainerPanel.previousJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westPreviousJLabel, gridBagConstraints); westCountJLabel.setText(bundle.getString("ContainerPanel.countJLabel")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westCountJLabel, gridBagConstraints); westNextJLabel.setText(bundle.getString("ContainerPanel.nextJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westNextJLabel, gridBagConstraints); westLastJLabel.setText(bundle.getString("ContainerPanel.lastJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westLastJLabel, gridBagConstraints); expandedJPanel.add(westJPanel); eastJPanel.setLayout(new java.awt.GridBagLayout()); eastJPanel.setOpaque(false); eastListJPanel.setLayout(new java.awt.GridBagLayout()); eastListJPanel.setOpaque(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; eastJPanel.add(eastListJPanel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 0); eastJPanel.add(eastFillerJLabel, gridBagConstraints); eastFirstJLabel.setText(bundle.getString("ContainerPanel.firstJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastFirstJLabel, gridBagConstraints); eastPreviousJLabel.setText(bundle.getString("ContainerPanel.previousJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastPreviousJLabel, gridBagConstraints); eastCountJLabel.setText(bundle.getString("ContainerPanel.countJLabel")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastCountJLabel, gridBagConstraints); eastNextJLabel.setText(bundle.getString("ContainerPanel.nextJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastNextJLabel, gridBagConstraints); eastLastJLabel.setText(bundle.getString("ContainerPanel.lastJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastLastJLabel, gridBagConstraints); expandedJPanel.add(eastJPanel); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(expandedJPanel, gridBagConstraints); }// </editor-fold>//GEN-END:initComponents |
westNextJLabel.setText(bundle.getString("ContainerPanel.nextJLabelWest")); | westNextJLabel.setText(java.util.ResourceBundle.getBundle("localization/ListItem_Messages").getString("ContainerPanel.nextJLabelWest")); | private void initComponents() { javax.swing.JLabel eastFillerJLabel; java.awt.GridBagConstraints gridBagConstraints; javax.swing.JLabel westFillerJLabel; westListJPanel = new PanelCellListJPanel(westListModel, ListType.WEST_LIST); westFillerJLabel = new javax.swing.JLabel(); eastListJPanel = new PanelCellListJPanel(eastListModel, ListType.EAST_LIST); eastFillerJLabel = new javax.swing.JLabel(); setLayout(new java.awt.GridBagLayout()); setBorder(BORDER); collapsedJPanel.setLayout(new java.awt.GridBagLayout()); collapsedJPanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent e) { collapsedJPanelMousePressed(e); } public void mouseReleased(java.awt.event.MouseEvent e) { collapsedJPanelMouseReleased(e); } }); iconJLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/IconContainer.png"))); iconJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent e) { iconJLabelMouseEntered(e); } public void mouseExited(java.awt.event.MouseEvent e) { iconJLabelMouseExited(e); } public void mousePressed(java.awt.event.MouseEvent e) { iconJLabelMousePressed(e); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH; gridBagConstraints.insets = new java.awt.Insets(4, 32, 0, 5); collapsedJPanel.add(iconJLabel, gridBagConstraints); textJLabel.setText("!Package Text!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(5, 3, 4, 0); collapsedJPanel.add(textJLabel, gridBagConstraints); additionalTextJLabel.setForeground(Colors.Browser.List.INNER_LIST_SELECTION_BORDER); additionalTextJLabel.setText("!Package Additional Text!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(5, 5, 4, 0); collapsedJPanel.add(additionalTextJLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(collapsedJPanel, gridBagConstraints); expandedJPanel.setLayout(new java.awt.GridLayout(1, 0)); expandedJPanel.setOpaque(false); expandedJPanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent e) { expandedJPanelMousePressed(e); } public void mouseReleased(java.awt.event.MouseEvent e) { expandedJPanelMouseReleased(e); } }); westJPanel.setLayout(new java.awt.GridBagLayout()); westJPanel.setOpaque(false); westListJPanel.setLayout(new java.awt.GridBagLayout()); westListJPanel.setOpaque(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; westJPanel.add(westListJPanel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 0); westJPanel.add(westFillerJLabel, gridBagConstraints); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/ListItem_Messages"); // NOI18N westFirstJLabel.setText(bundle.getString("ContainerPanel.firstJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 5); westJPanel.add(westFirstJLabel, gridBagConstraints); westPreviousJLabel.setText(bundle.getString("ContainerPanel.previousJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westPreviousJLabel, gridBagConstraints); westCountJLabel.setText(bundle.getString("ContainerPanel.countJLabel")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westCountJLabel, gridBagConstraints); westNextJLabel.setText(bundle.getString("ContainerPanel.nextJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westNextJLabel, gridBagConstraints); westLastJLabel.setText(bundle.getString("ContainerPanel.lastJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westLastJLabel, gridBagConstraints); expandedJPanel.add(westJPanel); eastJPanel.setLayout(new java.awt.GridBagLayout()); eastJPanel.setOpaque(false); eastListJPanel.setLayout(new java.awt.GridBagLayout()); eastListJPanel.setOpaque(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; eastJPanel.add(eastListJPanel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 0); eastJPanel.add(eastFillerJLabel, gridBagConstraints); eastFirstJLabel.setText(bundle.getString("ContainerPanel.firstJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastFirstJLabel, gridBagConstraints); eastPreviousJLabel.setText(bundle.getString("ContainerPanel.previousJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastPreviousJLabel, gridBagConstraints); eastCountJLabel.setText(bundle.getString("ContainerPanel.countJLabel")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastCountJLabel, gridBagConstraints); eastNextJLabel.setText(bundle.getString("ContainerPanel.nextJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastNextJLabel, gridBagConstraints); eastLastJLabel.setText(bundle.getString("ContainerPanel.lastJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastLastJLabel, gridBagConstraints); expandedJPanel.add(eastJPanel); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(expandedJPanel, gridBagConstraints); }// </editor-fold>//GEN-END:initComponents |
westLastJLabel.setText(bundle.getString("ContainerPanel.lastJLabelWest")); | westLastJLabel.setText(java.util.ResourceBundle.getBundle("localization/ListItem_Messages").getString("ContainerPanel.lastJLabelWest")); | private void initComponents() { javax.swing.JLabel eastFillerJLabel; java.awt.GridBagConstraints gridBagConstraints; javax.swing.JLabel westFillerJLabel; westListJPanel = new PanelCellListJPanel(westListModel, ListType.WEST_LIST); westFillerJLabel = new javax.swing.JLabel(); eastListJPanel = new PanelCellListJPanel(eastListModel, ListType.EAST_LIST); eastFillerJLabel = new javax.swing.JLabel(); setLayout(new java.awt.GridBagLayout()); setBorder(BORDER); collapsedJPanel.setLayout(new java.awt.GridBagLayout()); collapsedJPanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent e) { collapsedJPanelMousePressed(e); } public void mouseReleased(java.awt.event.MouseEvent e) { collapsedJPanelMouseReleased(e); } }); iconJLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/IconContainer.png"))); iconJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent e) { iconJLabelMouseEntered(e); } public void mouseExited(java.awt.event.MouseEvent e) { iconJLabelMouseExited(e); } public void mousePressed(java.awt.event.MouseEvent e) { iconJLabelMousePressed(e); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH; gridBagConstraints.insets = new java.awt.Insets(4, 32, 0, 5); collapsedJPanel.add(iconJLabel, gridBagConstraints); textJLabel.setText("!Package Text!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(5, 3, 4, 0); collapsedJPanel.add(textJLabel, gridBagConstraints); additionalTextJLabel.setForeground(Colors.Browser.List.INNER_LIST_SELECTION_BORDER); additionalTextJLabel.setText("!Package Additional Text!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(5, 5, 4, 0); collapsedJPanel.add(additionalTextJLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(collapsedJPanel, gridBagConstraints); expandedJPanel.setLayout(new java.awt.GridLayout(1, 0)); expandedJPanel.setOpaque(false); expandedJPanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent e) { expandedJPanelMousePressed(e); } public void mouseReleased(java.awt.event.MouseEvent e) { expandedJPanelMouseReleased(e); } }); westJPanel.setLayout(new java.awt.GridBagLayout()); westJPanel.setOpaque(false); westListJPanel.setLayout(new java.awt.GridBagLayout()); westListJPanel.setOpaque(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; westJPanel.add(westListJPanel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 0); westJPanel.add(westFillerJLabel, gridBagConstraints); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/ListItem_Messages"); // NOI18N westFirstJLabel.setText(bundle.getString("ContainerPanel.firstJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 5); westJPanel.add(westFirstJLabel, gridBagConstraints); westPreviousJLabel.setText(bundle.getString("ContainerPanel.previousJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westPreviousJLabel, gridBagConstraints); westCountJLabel.setText(bundle.getString("ContainerPanel.countJLabel")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westCountJLabel, gridBagConstraints); westNextJLabel.setText(bundle.getString("ContainerPanel.nextJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westNextJLabel, gridBagConstraints); westLastJLabel.setText(bundle.getString("ContainerPanel.lastJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westLastJLabel, gridBagConstraints); expandedJPanel.add(westJPanel); eastJPanel.setLayout(new java.awt.GridBagLayout()); eastJPanel.setOpaque(false); eastListJPanel.setLayout(new java.awt.GridBagLayout()); eastListJPanel.setOpaque(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; eastJPanel.add(eastListJPanel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 0); eastJPanel.add(eastFillerJLabel, gridBagConstraints); eastFirstJLabel.setText(bundle.getString("ContainerPanel.firstJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastFirstJLabel, gridBagConstraints); eastPreviousJLabel.setText(bundle.getString("ContainerPanel.previousJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastPreviousJLabel, gridBagConstraints); eastCountJLabel.setText(bundle.getString("ContainerPanel.countJLabel")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastCountJLabel, gridBagConstraints); eastNextJLabel.setText(bundle.getString("ContainerPanel.nextJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastNextJLabel, gridBagConstraints); eastLastJLabel.setText(bundle.getString("ContainerPanel.lastJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastLastJLabel, gridBagConstraints); expandedJPanel.add(eastJPanel); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(expandedJPanel, gridBagConstraints); }// </editor-fold>//GEN-END:initComponents |
eastFirstJLabel.setText(bundle.getString("ContainerPanel.firstJLabelEast")); | eastFirstJLabel.setText(java.util.ResourceBundle.getBundle("localization/ListItem_Messages").getString("ContainerPanel.firstJLabelEast")); | private void initComponents() { javax.swing.JLabel eastFillerJLabel; java.awt.GridBagConstraints gridBagConstraints; javax.swing.JLabel westFillerJLabel; westListJPanel = new PanelCellListJPanel(westListModel, ListType.WEST_LIST); westFillerJLabel = new javax.swing.JLabel(); eastListJPanel = new PanelCellListJPanel(eastListModel, ListType.EAST_LIST); eastFillerJLabel = new javax.swing.JLabel(); setLayout(new java.awt.GridBagLayout()); setBorder(BORDER); collapsedJPanel.setLayout(new java.awt.GridBagLayout()); collapsedJPanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent e) { collapsedJPanelMousePressed(e); } public void mouseReleased(java.awt.event.MouseEvent e) { collapsedJPanelMouseReleased(e); } }); iconJLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/IconContainer.png"))); iconJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent e) { iconJLabelMouseEntered(e); } public void mouseExited(java.awt.event.MouseEvent e) { iconJLabelMouseExited(e); } public void mousePressed(java.awt.event.MouseEvent e) { iconJLabelMousePressed(e); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH; gridBagConstraints.insets = new java.awt.Insets(4, 32, 0, 5); collapsedJPanel.add(iconJLabel, gridBagConstraints); textJLabel.setText("!Package Text!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(5, 3, 4, 0); collapsedJPanel.add(textJLabel, gridBagConstraints); additionalTextJLabel.setForeground(Colors.Browser.List.INNER_LIST_SELECTION_BORDER); additionalTextJLabel.setText("!Package Additional Text!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(5, 5, 4, 0); collapsedJPanel.add(additionalTextJLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(collapsedJPanel, gridBagConstraints); expandedJPanel.setLayout(new java.awt.GridLayout(1, 0)); expandedJPanel.setOpaque(false); expandedJPanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent e) { expandedJPanelMousePressed(e); } public void mouseReleased(java.awt.event.MouseEvent e) { expandedJPanelMouseReleased(e); } }); westJPanel.setLayout(new java.awt.GridBagLayout()); westJPanel.setOpaque(false); westListJPanel.setLayout(new java.awt.GridBagLayout()); westListJPanel.setOpaque(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; westJPanel.add(westListJPanel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 0); westJPanel.add(westFillerJLabel, gridBagConstraints); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/ListItem_Messages"); // NOI18N westFirstJLabel.setText(bundle.getString("ContainerPanel.firstJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 5); westJPanel.add(westFirstJLabel, gridBagConstraints); westPreviousJLabel.setText(bundle.getString("ContainerPanel.previousJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westPreviousJLabel, gridBagConstraints); westCountJLabel.setText(bundle.getString("ContainerPanel.countJLabel")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westCountJLabel, gridBagConstraints); westNextJLabel.setText(bundle.getString("ContainerPanel.nextJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westNextJLabel, gridBagConstraints); westLastJLabel.setText(bundle.getString("ContainerPanel.lastJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westLastJLabel, gridBagConstraints); expandedJPanel.add(westJPanel); eastJPanel.setLayout(new java.awt.GridBagLayout()); eastJPanel.setOpaque(false); eastListJPanel.setLayout(new java.awt.GridBagLayout()); eastListJPanel.setOpaque(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; eastJPanel.add(eastListJPanel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 0); eastJPanel.add(eastFillerJLabel, gridBagConstraints); eastFirstJLabel.setText(bundle.getString("ContainerPanel.firstJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastFirstJLabel, gridBagConstraints); eastPreviousJLabel.setText(bundle.getString("ContainerPanel.previousJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastPreviousJLabel, gridBagConstraints); eastCountJLabel.setText(bundle.getString("ContainerPanel.countJLabel")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastCountJLabel, gridBagConstraints); eastNextJLabel.setText(bundle.getString("ContainerPanel.nextJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastNextJLabel, gridBagConstraints); eastLastJLabel.setText(bundle.getString("ContainerPanel.lastJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastLastJLabel, gridBagConstraints); expandedJPanel.add(eastJPanel); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(expandedJPanel, gridBagConstraints); }// </editor-fold>//GEN-END:initComponents |
eastPreviousJLabel.setText(bundle.getString("ContainerPanel.previousJLabelEast")); | eastPreviousJLabel.setText(java.util.ResourceBundle.getBundle("localization/ListItem_Messages").getString("ContainerPanel.previousJLabelEast")); | private void initComponents() { javax.swing.JLabel eastFillerJLabel; java.awt.GridBagConstraints gridBagConstraints; javax.swing.JLabel westFillerJLabel; westListJPanel = new PanelCellListJPanel(westListModel, ListType.WEST_LIST); westFillerJLabel = new javax.swing.JLabel(); eastListJPanel = new PanelCellListJPanel(eastListModel, ListType.EAST_LIST); eastFillerJLabel = new javax.swing.JLabel(); setLayout(new java.awt.GridBagLayout()); setBorder(BORDER); collapsedJPanel.setLayout(new java.awt.GridBagLayout()); collapsedJPanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent e) { collapsedJPanelMousePressed(e); } public void mouseReleased(java.awt.event.MouseEvent e) { collapsedJPanelMouseReleased(e); } }); iconJLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/IconContainer.png"))); iconJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent e) { iconJLabelMouseEntered(e); } public void mouseExited(java.awt.event.MouseEvent e) { iconJLabelMouseExited(e); } public void mousePressed(java.awt.event.MouseEvent e) { iconJLabelMousePressed(e); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH; gridBagConstraints.insets = new java.awt.Insets(4, 32, 0, 5); collapsedJPanel.add(iconJLabel, gridBagConstraints); textJLabel.setText("!Package Text!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(5, 3, 4, 0); collapsedJPanel.add(textJLabel, gridBagConstraints); additionalTextJLabel.setForeground(Colors.Browser.List.INNER_LIST_SELECTION_BORDER); additionalTextJLabel.setText("!Package Additional Text!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(5, 5, 4, 0); collapsedJPanel.add(additionalTextJLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(collapsedJPanel, gridBagConstraints); expandedJPanel.setLayout(new java.awt.GridLayout(1, 0)); expandedJPanel.setOpaque(false); expandedJPanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent e) { expandedJPanelMousePressed(e); } public void mouseReleased(java.awt.event.MouseEvent e) { expandedJPanelMouseReleased(e); } }); westJPanel.setLayout(new java.awt.GridBagLayout()); westJPanel.setOpaque(false); westListJPanel.setLayout(new java.awt.GridBagLayout()); westListJPanel.setOpaque(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; westJPanel.add(westListJPanel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 0); westJPanel.add(westFillerJLabel, gridBagConstraints); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/ListItem_Messages"); // NOI18N westFirstJLabel.setText(bundle.getString("ContainerPanel.firstJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 5); westJPanel.add(westFirstJLabel, gridBagConstraints); westPreviousJLabel.setText(bundle.getString("ContainerPanel.previousJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westPreviousJLabel, gridBagConstraints); westCountJLabel.setText(bundle.getString("ContainerPanel.countJLabel")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westCountJLabel, gridBagConstraints); westNextJLabel.setText(bundle.getString("ContainerPanel.nextJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westNextJLabel, gridBagConstraints); westLastJLabel.setText(bundle.getString("ContainerPanel.lastJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westLastJLabel, gridBagConstraints); expandedJPanel.add(westJPanel); eastJPanel.setLayout(new java.awt.GridBagLayout()); eastJPanel.setOpaque(false); eastListJPanel.setLayout(new java.awt.GridBagLayout()); eastListJPanel.setOpaque(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; eastJPanel.add(eastListJPanel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 0); eastJPanel.add(eastFillerJLabel, gridBagConstraints); eastFirstJLabel.setText(bundle.getString("ContainerPanel.firstJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastFirstJLabel, gridBagConstraints); eastPreviousJLabel.setText(bundle.getString("ContainerPanel.previousJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastPreviousJLabel, gridBagConstraints); eastCountJLabel.setText(bundle.getString("ContainerPanel.countJLabel")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastCountJLabel, gridBagConstraints); eastNextJLabel.setText(bundle.getString("ContainerPanel.nextJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastNextJLabel, gridBagConstraints); eastLastJLabel.setText(bundle.getString("ContainerPanel.lastJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastLastJLabel, gridBagConstraints); expandedJPanel.add(eastJPanel); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(expandedJPanel, gridBagConstraints); }// </editor-fold>//GEN-END:initComponents |
eastCountJLabel.setText(bundle.getString("ContainerPanel.countJLabel")); | eastCountJLabel.setText(java.util.ResourceBundle.getBundle("localization/ListItem_Messages").getString("ContainerPanel.countJLabel")); | private void initComponents() { javax.swing.JLabel eastFillerJLabel; java.awt.GridBagConstraints gridBagConstraints; javax.swing.JLabel westFillerJLabel; westListJPanel = new PanelCellListJPanel(westListModel, ListType.WEST_LIST); westFillerJLabel = new javax.swing.JLabel(); eastListJPanel = new PanelCellListJPanel(eastListModel, ListType.EAST_LIST); eastFillerJLabel = new javax.swing.JLabel(); setLayout(new java.awt.GridBagLayout()); setBorder(BORDER); collapsedJPanel.setLayout(new java.awt.GridBagLayout()); collapsedJPanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent e) { collapsedJPanelMousePressed(e); } public void mouseReleased(java.awt.event.MouseEvent e) { collapsedJPanelMouseReleased(e); } }); iconJLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/IconContainer.png"))); iconJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent e) { iconJLabelMouseEntered(e); } public void mouseExited(java.awt.event.MouseEvent e) { iconJLabelMouseExited(e); } public void mousePressed(java.awt.event.MouseEvent e) { iconJLabelMousePressed(e); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH; gridBagConstraints.insets = new java.awt.Insets(4, 32, 0, 5); collapsedJPanel.add(iconJLabel, gridBagConstraints); textJLabel.setText("!Package Text!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(5, 3, 4, 0); collapsedJPanel.add(textJLabel, gridBagConstraints); additionalTextJLabel.setForeground(Colors.Browser.List.INNER_LIST_SELECTION_BORDER); additionalTextJLabel.setText("!Package Additional Text!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(5, 5, 4, 0); collapsedJPanel.add(additionalTextJLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(collapsedJPanel, gridBagConstraints); expandedJPanel.setLayout(new java.awt.GridLayout(1, 0)); expandedJPanel.setOpaque(false); expandedJPanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent e) { expandedJPanelMousePressed(e); } public void mouseReleased(java.awt.event.MouseEvent e) { expandedJPanelMouseReleased(e); } }); westJPanel.setLayout(new java.awt.GridBagLayout()); westJPanel.setOpaque(false); westListJPanel.setLayout(new java.awt.GridBagLayout()); westListJPanel.setOpaque(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; westJPanel.add(westListJPanel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 0); westJPanel.add(westFillerJLabel, gridBagConstraints); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/ListItem_Messages"); // NOI18N westFirstJLabel.setText(bundle.getString("ContainerPanel.firstJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 5); westJPanel.add(westFirstJLabel, gridBagConstraints); westPreviousJLabel.setText(bundle.getString("ContainerPanel.previousJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westPreviousJLabel, gridBagConstraints); westCountJLabel.setText(bundle.getString("ContainerPanel.countJLabel")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westCountJLabel, gridBagConstraints); westNextJLabel.setText(bundle.getString("ContainerPanel.nextJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westNextJLabel, gridBagConstraints); westLastJLabel.setText(bundle.getString("ContainerPanel.lastJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westLastJLabel, gridBagConstraints); expandedJPanel.add(westJPanel); eastJPanel.setLayout(new java.awt.GridBagLayout()); eastJPanel.setOpaque(false); eastListJPanel.setLayout(new java.awt.GridBagLayout()); eastListJPanel.setOpaque(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; eastJPanel.add(eastListJPanel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 0); eastJPanel.add(eastFillerJLabel, gridBagConstraints); eastFirstJLabel.setText(bundle.getString("ContainerPanel.firstJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastFirstJLabel, gridBagConstraints); eastPreviousJLabel.setText(bundle.getString("ContainerPanel.previousJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastPreviousJLabel, gridBagConstraints); eastCountJLabel.setText(bundle.getString("ContainerPanel.countJLabel")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastCountJLabel, gridBagConstraints); eastNextJLabel.setText(bundle.getString("ContainerPanel.nextJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastNextJLabel, gridBagConstraints); eastLastJLabel.setText(bundle.getString("ContainerPanel.lastJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastLastJLabel, gridBagConstraints); expandedJPanel.add(eastJPanel); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(expandedJPanel, gridBagConstraints); }// </editor-fold>//GEN-END:initComponents |
eastNextJLabel.setText(bundle.getString("ContainerPanel.nextJLabelEast")); | eastNextJLabel.setText(java.util.ResourceBundle.getBundle("localization/ListItem_Messages").getString("ContainerPanel.nextJLabelEast")); | private void initComponents() { javax.swing.JLabel eastFillerJLabel; java.awt.GridBagConstraints gridBagConstraints; javax.swing.JLabel westFillerJLabel; westListJPanel = new PanelCellListJPanel(westListModel, ListType.WEST_LIST); westFillerJLabel = new javax.swing.JLabel(); eastListJPanel = new PanelCellListJPanel(eastListModel, ListType.EAST_LIST); eastFillerJLabel = new javax.swing.JLabel(); setLayout(new java.awt.GridBagLayout()); setBorder(BORDER); collapsedJPanel.setLayout(new java.awt.GridBagLayout()); collapsedJPanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent e) { collapsedJPanelMousePressed(e); } public void mouseReleased(java.awt.event.MouseEvent e) { collapsedJPanelMouseReleased(e); } }); iconJLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/IconContainer.png"))); iconJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent e) { iconJLabelMouseEntered(e); } public void mouseExited(java.awt.event.MouseEvent e) { iconJLabelMouseExited(e); } public void mousePressed(java.awt.event.MouseEvent e) { iconJLabelMousePressed(e); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH; gridBagConstraints.insets = new java.awt.Insets(4, 32, 0, 5); collapsedJPanel.add(iconJLabel, gridBagConstraints); textJLabel.setText("!Package Text!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(5, 3, 4, 0); collapsedJPanel.add(textJLabel, gridBagConstraints); additionalTextJLabel.setForeground(Colors.Browser.List.INNER_LIST_SELECTION_BORDER); additionalTextJLabel.setText("!Package Additional Text!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(5, 5, 4, 0); collapsedJPanel.add(additionalTextJLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(collapsedJPanel, gridBagConstraints); expandedJPanel.setLayout(new java.awt.GridLayout(1, 0)); expandedJPanel.setOpaque(false); expandedJPanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent e) { expandedJPanelMousePressed(e); } public void mouseReleased(java.awt.event.MouseEvent e) { expandedJPanelMouseReleased(e); } }); westJPanel.setLayout(new java.awt.GridBagLayout()); westJPanel.setOpaque(false); westListJPanel.setLayout(new java.awt.GridBagLayout()); westListJPanel.setOpaque(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; westJPanel.add(westListJPanel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 0); westJPanel.add(westFillerJLabel, gridBagConstraints); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/ListItem_Messages"); // NOI18N westFirstJLabel.setText(bundle.getString("ContainerPanel.firstJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 5); westJPanel.add(westFirstJLabel, gridBagConstraints); westPreviousJLabel.setText(bundle.getString("ContainerPanel.previousJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westPreviousJLabel, gridBagConstraints); westCountJLabel.setText(bundle.getString("ContainerPanel.countJLabel")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westCountJLabel, gridBagConstraints); westNextJLabel.setText(bundle.getString("ContainerPanel.nextJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westNextJLabel, gridBagConstraints); westLastJLabel.setText(bundle.getString("ContainerPanel.lastJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westLastJLabel, gridBagConstraints); expandedJPanel.add(westJPanel); eastJPanel.setLayout(new java.awt.GridBagLayout()); eastJPanel.setOpaque(false); eastListJPanel.setLayout(new java.awt.GridBagLayout()); eastListJPanel.setOpaque(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; eastJPanel.add(eastListJPanel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 0); eastJPanel.add(eastFillerJLabel, gridBagConstraints); eastFirstJLabel.setText(bundle.getString("ContainerPanel.firstJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastFirstJLabel, gridBagConstraints); eastPreviousJLabel.setText(bundle.getString("ContainerPanel.previousJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastPreviousJLabel, gridBagConstraints); eastCountJLabel.setText(bundle.getString("ContainerPanel.countJLabel")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastCountJLabel, gridBagConstraints); eastNextJLabel.setText(bundle.getString("ContainerPanel.nextJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastNextJLabel, gridBagConstraints); eastLastJLabel.setText(bundle.getString("ContainerPanel.lastJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastLastJLabel, gridBagConstraints); expandedJPanel.add(eastJPanel); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(expandedJPanel, gridBagConstraints); }// </editor-fold>//GEN-END:initComponents |
eastLastJLabel.setText(bundle.getString("ContainerPanel.lastJLabelEast")); | eastLastJLabel.setText(java.util.ResourceBundle.getBundle("localization/ListItem_Messages").getString("ContainerPanel.lastJLabelEast")); | private void initComponents() { javax.swing.JLabel eastFillerJLabel; java.awt.GridBagConstraints gridBagConstraints; javax.swing.JLabel westFillerJLabel; westListJPanel = new PanelCellListJPanel(westListModel, ListType.WEST_LIST); westFillerJLabel = new javax.swing.JLabel(); eastListJPanel = new PanelCellListJPanel(eastListModel, ListType.EAST_LIST); eastFillerJLabel = new javax.swing.JLabel(); setLayout(new java.awt.GridBagLayout()); setBorder(BORDER); collapsedJPanel.setLayout(new java.awt.GridBagLayout()); collapsedJPanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent e) { collapsedJPanelMousePressed(e); } public void mouseReleased(java.awt.event.MouseEvent e) { collapsedJPanelMouseReleased(e); } }); iconJLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/IconContainer.png"))); iconJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent e) { iconJLabelMouseEntered(e); } public void mouseExited(java.awt.event.MouseEvent e) { iconJLabelMouseExited(e); } public void mousePressed(java.awt.event.MouseEvent e) { iconJLabelMousePressed(e); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH; gridBagConstraints.insets = new java.awt.Insets(4, 32, 0, 5); collapsedJPanel.add(iconJLabel, gridBagConstraints); textJLabel.setText("!Package Text!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(5, 3, 4, 0); collapsedJPanel.add(textJLabel, gridBagConstraints); additionalTextJLabel.setForeground(Colors.Browser.List.INNER_LIST_SELECTION_BORDER); additionalTextJLabel.setText("!Package Additional Text!"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(5, 5, 4, 0); collapsedJPanel.add(additionalTextJLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(collapsedJPanel, gridBagConstraints); expandedJPanel.setLayout(new java.awt.GridLayout(1, 0)); expandedJPanel.setOpaque(false); expandedJPanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent e) { expandedJPanelMousePressed(e); } public void mouseReleased(java.awt.event.MouseEvent e) { expandedJPanelMouseReleased(e); } }); westJPanel.setLayout(new java.awt.GridBagLayout()); westJPanel.setOpaque(false); westListJPanel.setLayout(new java.awt.GridBagLayout()); westListJPanel.setOpaque(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; westJPanel.add(westListJPanel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 0); westJPanel.add(westFillerJLabel, gridBagConstraints); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/ListItem_Messages"); // NOI18N westFirstJLabel.setText(bundle.getString("ContainerPanel.firstJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 5); westJPanel.add(westFirstJLabel, gridBagConstraints); westPreviousJLabel.setText(bundle.getString("ContainerPanel.previousJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westPreviousJLabel, gridBagConstraints); westCountJLabel.setText(bundle.getString("ContainerPanel.countJLabel")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westCountJLabel, gridBagConstraints); westNextJLabel.setText(bundle.getString("ContainerPanel.nextJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westNextJLabel, gridBagConstraints); westLastJLabel.setText(bundle.getString("ContainerPanel.lastJLabelWest")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); westJPanel.add(westLastJLabel, gridBagConstraints); expandedJPanel.add(westJPanel); eastJPanel.setLayout(new java.awt.GridBagLayout()); eastJPanel.setOpaque(false); eastListJPanel.setLayout(new java.awt.GridBagLayout()); eastListJPanel.setOpaque(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; eastJPanel.add(eastListJPanel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 0); eastJPanel.add(eastFillerJLabel, gridBagConstraints); eastFirstJLabel.setText(bundle.getString("ContainerPanel.firstJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastFirstJLabel, gridBagConstraints); eastPreviousJLabel.setText(bundle.getString("ContainerPanel.previousJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastPreviousJLabel, gridBagConstraints); eastCountJLabel.setText(bundle.getString("ContainerPanel.countJLabel")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastCountJLabel, gridBagConstraints); eastNextJLabel.setText(bundle.getString("ContainerPanel.nextJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastNextJLabel, gridBagConstraints); eastLastJLabel.setText(bundle.getString("ContainerPanel.lastJLabelEast")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 5, 1, 5); eastJPanel.add(eastLastJLabel, gridBagConstraints); expandedJPanel.add(eastJPanel); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(expandedJPanel, gridBagConstraints); }// </editor-fold>//GEN-END:initComponents |
public void mousePressed(java.awt.event.MouseEvent e) { collapsedJPanelMousePressed(e); | public void mousePressed(java.awt.event.MouseEvent evt) { collapsedJPanelMousePressed(evt); | public void mousePressed(java.awt.event.MouseEvent e) { collapsedJPanelMousePressed(e); } |
public void mouseReleased(java.awt.event.MouseEvent e) { collapsedJPanelMouseReleased(e); | public void mouseReleased(java.awt.event.MouseEvent evt) { collapsedJPanelMouseReleased(evt); | public void mouseReleased(java.awt.event.MouseEvent e) { collapsedJPanelMouseReleased(e); } |
public void mouseEntered(java.awt.event.MouseEvent e) { iconJLabelMouseEntered(e); | public void mouseEntered(java.awt.event.MouseEvent evt) { iconJLabelMouseEntered(evt); | public void mouseEntered(java.awt.event.MouseEvent e) { iconJLabelMouseEntered(e); } |
public void mouseExited(java.awt.event.MouseEvent e) { iconJLabelMouseExited(e); | public void mouseExited(java.awt.event.MouseEvent evt) { iconJLabelMouseExited(evt); | public void mouseExited(java.awt.event.MouseEvent e) { iconJLabelMouseExited(e); } |
public void mousePressed(java.awt.event.MouseEvent e) { iconJLabelMousePressed(e); | public void mousePressed(java.awt.event.MouseEvent evt) { iconJLabelMousePressed(evt); | public void mousePressed(java.awt.event.MouseEvent e) { iconJLabelMousePressed(e); } |
public void mousePressed(java.awt.event.MouseEvent e) { expandedJPanelMousePressed(e); | public void mousePressed(java.awt.event.MouseEvent evt) { expandedJPanelMousePressed(evt); | public void mousePressed(java.awt.event.MouseEvent e) { expandedJPanelMousePressed(e); } |
public void mouseReleased(java.awt.event.MouseEvent e) { expandedJPanelMouseReleased(e); | public void mouseReleased(java.awt.event.MouseEvent evt) { expandedJPanelMouseReleased(evt); | public void mouseReleased(java.awt.event.MouseEvent e) { expandedJPanelMouseReleased(e); } |
public void panelCellMousePressed(final Cell cell, final MouseEvent e) { | public void panelCellMousePressed(final Cell cell, final Boolean onIcon, final MouseEvent e) { | public void panelCellMousePressed(final Cell cell, final MouseEvent e) { if (cell instanceof WestCell) { westListModel.setSelectedCell(cell); } if ((e.getClickCount() % 2) == 0) { tabDelegate.toggleExpansion(this); } } |
if ((e.getClickCount() % 2) == 0) { | if (!onIcon && e.getClickCount() % 2 == 0) { | public void panelCellMousePressed(final Cell cell, final MouseEvent e) { if (cell instanceof WestCell) { westListModel.setSelectedCell(cell); } if ((e.getClickCount() % 2) == 0) { tabDelegate.toggleExpansion(this); } } |
assertNotNull(document); | public void testGet() { try { Document document; for(Fixture datum : data) { document = datum.documentModel.get(datum.id); assertNotNull(document); assertEquals(datum.document, document); } } catch(Throwable t) { fail(getFailMessage(t)); } } |
|
public void airBrushReceiveMessage(Message msg) { | public boolean airBrushReceiveMessage(Message msg) { if (super.airBrushReceiveMessage(msg)) return true; | public void airBrushReceiveMessage(Message msg) { // TODO Auto-generated method stub System.out.println("Receiving " + msg.type + " from AirBrush."); if (msg.type.equals("Story")) { System.out.println("Story content: " + msg.content); Story story; // Parse the XML into the Story object story = Story.createFromYAML(msg.content); // Print some information System.out.println("Received story written by " + story.getAuthor() + " on " + story.getPublicationDate() + ": " + story.getContent()); // Now add this story to the queue storyQueue.offer(story); } } |
return false; | public void airBrushReceiveMessage(Message msg) { // TODO Auto-generated method stub System.out.println("Receiving " + msg.type + " from AirBrush."); if (msg.type.equals("Story")) { System.out.println("Story content: " + msg.content); Story story; // Parse the XML into the Story object story = Story.createFromYAML(msg.content); // Print some information System.out.println("Received story written by " + story.getAuthor() + " on " + story.getPublicationDate() + ": " + story.getContent()); // Now add this story to the queue storyQueue.offer(story); } } |
|
else { deleteLocal(document); } | else { getInternalSessionModel().sendDelete(document.getId()); deleteLocal(document); } | void delete(final Long documentId) throws ParityException { logger.info("[LMODEL] [DOCUMENT MODEL] [DELETE]"); logger.debug(documentId); assertOnline("[LMODEL] [DOCUMENT MODEL] [DELETE] [USER IS NOT ONLINE]"); final Document document = get(documentId); if(isClosed(document)) { deleteLocal(document); } else { if(isKeyHolder(documentId)) { if(!isDistributed(documentId)) { deleteLocal(document); } else { throw Assert.createUnreachable( "[LMODEL] [DOCUMENT] [DELETE] [CAN ONLY DELETE CLOSED DOCUMENTS IF YOU ARE THE KEY HOLDER]"); } } else { deleteLocal(document); } } // fire event notifyDocumentDeleted(null, localEventGen); } |
final InternalSessionModel iSModel = getInternalSessionModel(); iSModel.sendCreate(document); | final DocumentVersion version = readLatestVersion(documentId); final DocumentVersionContent versionContent = getVersionContent(documentId, version.getVersionId()); final Set<User> users = iAModel.readTeam(documentId); final List<JabberId> team = new ArrayList<JabberId>(); for(final User user : users) { team.add(user.getId()); } getInternalSessionModel().sendDocumentReactivate(team, document.getUniqueId(), version.getVersionId(), document.getName(), versionContent.getDocumentContent().getContent()); | void reactivate(final Long documentId) throws ParityException { logger.info(getApiId("[REACTIVATE]")); assertIsClosed(getErrorId("[REACTIVATE]", "[CANNOT REACTIVATE A CLOSED DOCUMENT]"), get(documentId)); // update the local state final Document document = get(documentId); assertStateTransition(document.getState(), ArtifactState.ACTIVE); document.setState(ArtifactState.ACTIVE); documentIO.update(document); // set key locally final InternalArtifactModel iAModel = getInternalArtifactModel(); iAModel.applyFlagKey(documentId); // create remotely final InternalSessionModel iSModel = getInternalSessionModel(); iSModel.sendCreate(document); // share final Set<User> users = iAModel.readTeam(documentId); Collection<User> userCollection; Collection<DocumentVersion> versions; for(final User user : users) { userCollection = new Vector<User>(1); userCollection.add(user); versions = listVersions(documentId); for(final DocumentVersion version : versions) { getInternalSessionModel().send(userCollection, documentId, version.getVersionId()); } } } |
final Set<User> users = iAModel.readTeam(documentId); Collection<User> userCollection; Collection<DocumentVersion> versions; for(final User user : users) { userCollection = new Vector<User>(1); userCollection.add(user); versions = listVersions(documentId); for(final DocumentVersion version : versions) { getInternalSessionModel().send(userCollection, documentId, version.getVersionId()); } } | final Calendar currentDateTime = currentDateTime(); auditor.reactivate(documentId, currentDateTime, currentUserId(), version.getVersionId(), currentUserId(), currentDateTime); notifyDocumentReactivated(readUser(currentUserId()), document, version, localEventGen); | void reactivate(final Long documentId) throws ParityException { logger.info(getApiId("[REACTIVATE]")); assertIsClosed(getErrorId("[REACTIVATE]", "[CANNOT REACTIVATE A CLOSED DOCUMENT]"), get(documentId)); // update the local state final Document document = get(documentId); assertStateTransition(document.getState(), ArtifactState.ACTIVE); document.setState(ArtifactState.ACTIVE); documentIO.update(document); // set key locally final InternalArtifactModel iAModel = getInternalArtifactModel(); iAModel.applyFlagKey(documentId); // create remotely final InternalSessionModel iSModel = getInternalSessionModel(); iSModel.sendCreate(document); // share final Set<User> users = iAModel.readTeam(documentId); Collection<User> userCollection; Collection<DocumentVersion> versions; for(final User user : users) { userCollection = new Vector<User>(1); userCollection.add(user); versions = listVersions(documentId); for(final DocumentVersion version : versions) { getInternalSessionModel().send(userCollection, documentId, version.getVersionId()); } } } |
notifyTeamMemberRemoved(user, get(documentId), remoteEventGen); | void removeTeamMember(final Long documentId, final JabberId jabberId) throws ParityException { logger.info("[LMODEL] [DOCUMENT] [REMOVE TEAM MEMBER]"); logger.debug(documentId); logger.debug(jabberId); // remove the team member locally getInternalArtifactModel().removeTeamMember(documentId, jabberId); // re-index updateIndex(documentId); } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.