alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

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.
 */

package org.netbeans.api.web.dd.common;
/**
 * Super interface for all DD elements having the icon property/properties. 
 *
 *

Important note: Do not provide an implementation of this interface unless you are a DD API provider! *

* * @author Milan Kuchtiak */ public interface IconInterface { /** * Sets the small-icon element value for particular locale.
* If locale=null the method sets the small-icon value for icon element where xml:lang attribute is not specified.
* If icon=null method removes the small-icon element for a specified locale.
* * @param locale string representing the locale - the value for xml:lang attribute e.g. "fr" * @param icon value for small-icon element */ public void setSmallIcon(String locale, String icon) throws VersionNotSupportedException; /** * Sets the small-icon element value for icon element where xml:lang attribute is not specified. * * @param icon value for small-icon element */ public void setSmallIcon(String icon); /** * Sets the large-icon element value for particular locale.
* If locale=null the method sets the large-icon value for icon element where xml:lang attribute is not specified.
* If icon=null method removes the large-icon element for a specified locale.
* * @param locale string representing the locale - the value for xml:lang attribute e.g. "fr" * @param icon value for large-icon element */ public void setLargeIcon(String locale, String icon) throws VersionNotSupportedException; /** * Sets the large-icon element value for icon element where xml:lang attribute is not specified. * * @param icon value for large-icon element */ public void setLargeIcon(String icon); /** * Sets the multiple icon elements. * * @param locales array of locales (xml:lang attribute values for icon elements) * @param smallIcons array of values for small-icon elements * @param largeIcons array of values for large-icon elements */ public void setAllIcons(String[] locales, String[] smallIcons, String[] largeIcons) throws VersionNotSupportedException; /** * Sets the icon element. Looking for icon element with the same xml:lang attribute.
* If found the element will be replaced by new icon value. * * @param icon value for icon element */ public void setIcon(org.netbeans.api.web.dd.Icon icon); /** * Returns the small-icon element value for particular locale.
* If locale=null method returns small-icon for default locale. * * @param locale string representing the locale - the value of xml:lang attribute e.g. "fr". * @return small-icon element value or null if not specified for given locale */ public String getSmallIcon(String locale) throws VersionNotSupportedException; /** * Returns the small-icon element value for default locale. * * @return small-icon element value or null if not specified for default locale */ public String getSmallIcon(); /** * Returns the large-icon element value for particular locale.
* If locale=null method returns large-icon for default locale. * * @param locale string representing the locale - the value of xml:lang attribute e.g. "fr". * @return large-icon element value or null if not specified for given locale */ public String getLargeIcon(String locale) throws VersionNotSupportedException; /** * Returns the large-icon element value for default locale. * * @return large-icon element value or null if not specified for default locale */ public String getLargeIcon(); /** * Returns the icon element value for default locale. * * @return icon element value or null if not specified for default locale */ public org.netbeans.api.web.dd.Icon getDefaultIcon(); /** * Returns all icon elements in the form of <@link java.util.Map>. * * @return map of all icons in the form of [locale:String[]{smallIcon, largeIcon}] */ public java.util.Map getAllIcons(); /** * Removes the small-icon element for particular locale. * If locale=null the method removes the small-icon element for default locale. * * @param locale string representing the locale - the value of xml:lang attribute e.g. "fr" */ public void removeSmallIcon(String locale) throws VersionNotSupportedException; /** * Removes the large-icon element for particular locale. * If locale=null the method removes the large-icon element for default locale. * * @param locale string representing the locale - the value of xml:lang attribute e.g. "fr" */ public void removeLargeIcon(String locale) throws VersionNotSupportedException; /** * Removes the icon element for particular locale. * If locale=null the method removes the icon element for default locale. * * @param locale string representing the locale - the value of xml:lang attribute e.g. "fr" */ public void removeIcon(String locale) throws VersionNotSupportedException; /** * Removes small-icon element for default locale. */ public void removeSmallIcon(); /** * Removes large-icon element for default locale. */ public void removeLargeIcon(); /** * Removes icon element for default locale. */ public void removeIcon(); /** * Removes all icon elements from DD element. */ public void removeAllIcons(); }
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

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.