Package org.zkoss.zk.ui.util
Class SimpleThemeURIModifier
- java.lang.Object
-
- org.zkoss.zk.ui.util.SimpleThemeURIModifier
-
- All Implemented Interfaces:
ThemeURIModifier
public class SimpleThemeURIModifier extends java.lang.Object implements ThemeURIModifier
A simple implementation ofThemeURIModifier. The adding priority is basically the index of the uri list.- Since:
- 9.6.0
- Author:
- leon
-
-
Constructor Summary
Constructors Constructor Description SimpleThemeURIModifier(java.util.List<org.zkoss.html.StyleSheet> originalList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, java.lang.String href)Inserts the specified CSS/WCS file uri at the specified position in the theme uri list according to the priority.voidadd(int index, org.zkoss.html.StyleSheet uri)Inserts the specified CSS/WCS file uri at the specified position in the theme uri list according to the priority.voidadd(java.lang.String href)Appends the specified CSS/WCS file uri to the end of the theme uri list.voidadd(org.zkoss.html.StyleSheet uri)Appends the specified CSS/WCS file uri to the end of the theme uri list.java.util.List<org.zkoss.html.StyleSheet>getURIs()Returns a read-only list of theme uri which present the current status of the CSS/WCS files list.
-
-
-
Method Detail
-
getURIs
public java.util.List<org.zkoss.html.StyleSheet> getURIs()
Description copied from interface:ThemeURIModifierReturns a read-only list of theme uri which present the current status of the CSS/WCS files list.- Specified by:
getURIsin interfaceThemeURIModifier- Returns:
- a read-only list of StyleSheet
-
add
public void add(java.lang.String href)
Description copied from interface:ThemeURIModifierAppends the specified CSS/WCS file uri to the end of the theme uri list.- Specified by:
addin interfaceThemeURIModifier- Parameters:
href- the specified CSS/WCS file uri
-
add
public void add(int index, java.lang.String href)Description copied from interface:ThemeURIModifierInserts the specified CSS/WCS file uri at the specified position in the theme uri list according to the priority.- Specified by:
addin interfaceThemeURIModifier- Parameters:
index- the basis used to determine the insertion positionhref- the specified CSS/WCS file uri
-
add
public void add(org.zkoss.html.StyleSheet uri)
Description copied from interface:ThemeURIModifierAppends the specified CSS/WCS file uri to the end of the theme uri list.- Specified by:
addin interfaceThemeURIModifier- Parameters:
uri- the specified CSS/WCS file uri
-
add
public void add(int index, org.zkoss.html.StyleSheet uri)Description copied from interface:ThemeURIModifierInserts the specified CSS/WCS file uri at the specified position in the theme uri list according to the priority.- Specified by:
addin interfaceThemeURIModifier- Parameters:
index- the basis used to determine the insertion positionuri- the specified CSS/WCS file uri
-
-