|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2003 Sun * Microsystems, Inc. All Rights Reserved. */ /** * CookieDisplay.java * * * Created: Wed Jan 31 18:04:22 2001 * * @author Ana von Klopp * @version */ package org.netbeans.modules.web.monitor.client; import java.util.ResourceBundle; import javax.accessibility.AccessibleContext; import javax.accessibility.AccessibleRelation; import javax.swing.JLabel; import org.openide.util.NbBundle; import org.netbeans.modules.web.monitor.data.*; // PENDING: can be more helpful with what the cookie data means. Like // I had the expires at the end of this session before, that was kind // of useful. Could also show the actual date that the cookie // expires. public class CookieDisplay extends DataDisplay { private final static boolean debug = false; public CookieDisplay() { super(); } // We're treating these as if they are all strings at the // moment. In reality they can be of different types, though maybe // that does not matter... public void setData(DataRecord md) { if(debug) System.out.println("in CookieDisplay.setData()"); //NOI18N this.removeAll(); if (md == null) return; CookiesData cd = md.getCookiesData(); CookieIn[] in = cd.getCookieIn(); CookieOut[] out = cd.getCookieOut(); int gridy = -1; String headerIn; JLabel incomingLabel; if(in == null || in.length == 0) { headerIn = NbBundle.getBundle(CookieDisplay.class).getString("MON_No_incoming"); incomingLabel = createDataLabel(headerIn); } else { headerIn = NbBundle.getBundle(CookieDisplay.class).getString("MON_Incoming_cookie"); incomingLabel = createHeaderLabel(headerIn, NbBundle.getBundle(CookieDisplay.class).getString("MON_Incoming_cookie_Mnemonic").charAt(0), NbBundle.getBundle(CookieDisplay.class).getString("ACS_MON_Incoming_cookieA11yDesc"), null); } addGridBagComponent(this, createTopSpacer(), 0, ++gridy, fullGridWidth, 1, 0, 0, java.awt.GridBagConstraints.WEST, java.awt.GridBagConstraints.NONE, topSpacerInsets, 0, 0); addGridBagComponent(this, incomingLabel, 0, ++gridy, fullGridWidth, 1, 0, 0, java.awt.GridBagConstraints.WEST, java.awt.GridBagConstraints.HORIZONTAL, labelInsets, 0, 0); AccessibleContext aCtx; AccessibleRelation aRel; DisplayTable dt; if(in != null && in.length > 0) { for(int i=0; i |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.