/** * Provides a default implementation for the name property. It's unlikely * developers will need to override. */ @Override public String getName() { if (getNamePanel() != null) { return getNamePanel().getName(); } return ""; // $NON-NLS-1$ }
/** * Create a standard title section for JMeter components. This includes the * title for the component and the Name Panel allowing the user to change * the name for the component. This method is typically added to the top of * the component at the beginning of the component's init method. * * @return a panel containing the component title and name panel */ protected Container makeTitlePanel() { VerticalPanel titlePanel = new VerticalPanel(); titlePanel.add(createTitleLabel()); VerticalPanel contentPanel = new VerticalPanel(); contentPanel.setBorder(BorderFactory.createEtchedBorder()); contentPanel.add(getNamePanel()); contentPanel.add(getCommentPanel()); titlePanel.add(contentPanel); return titlePanel; }