/** * Moves the color scheme with the specified display name one position * towards the beginning of the list. This method is for internal use * only and should not be used in custom application skins. * * @param displayName * Display name of the color scheme to move one position * towards the beginning of the list. */ public void switchWithPrevious(String displayName) { int index = this.indexOf(displayName); if (index >= 0) { SubstanceColorScheme scheme = this.schemes.remove(index); this.schemes.add(index - 1, scheme); } }
/** * Finds the index of the color scheme that has the specified display * name and replaces it with (possibly another) color scheme. This * method is for internal use only and should not be used in custom * application skins. * * @param displayName * Display name of a color scheme. * @param scheme * Color scheme that will replace the existing color scheme * (based on the display name) at the same index in the list. */ public void replace(String displayName, SubstanceColorScheme scheme) { int index = this.indexOf(displayName); if (index >= 0) { this.schemes.remove(index); this.schemes.add(index, scheme); } }
/** * Moves the color scheme with the specified display name one position * towards the beginning of the list. This method is for internal use * only and should not be used in custom application skins. * * @param displayName * Display name of the color scheme to move one position * towards the beginning of the list. */ public void switchWithPrevious(String displayName) { int index = this.indexOf(displayName); if (index >= 0) { SubstanceColorScheme scheme = this.schemes.remove(index); this.schemes.add(index - 1, scheme); } }
/** * Moves the color scheme with the specified display name one position * towards the end of the list. This method is for internal use only and * should not be used in custom application skins. * * @param displayName * Display name of the color scheme to move one position * towards the end of the list. */ public void switchWithNext(String displayName) { int index = this.indexOf(displayName); if (index >= 0) { SubstanceColorScheme scheme = this.schemes.remove(index); this.schemes.add(index + 1, scheme); } } }
/** * Moves the color scheme with the specified display name one position * towards the end of the list. This method is for internal use only and * should not be used in custom application skins. * * @param displayName * Display name of the color scheme to move one position * towards the end of the list. */ public void switchWithNext(String displayName) { int index = this.indexOf(displayName); if (index >= 0) { SubstanceColorScheme scheme = this.schemes.remove(index); this.schemes.add(index + 1, scheme); } } }
/** * Finds the index of the color scheme that has the specified display * name and replaces it with (possibly another) color scheme. This * method is for internal use only and should not be used in custom * application skins. * * @param displayName * Display name of a color scheme. * @param scheme * Color scheme that will replace the existing color scheme * (based on the display name) at the same index in the list. */ public void replace(String displayName, SubstanceColorScheme scheme) { int index = this.indexOf(displayName); if (index >= 0) { this.schemes.remove(index); this.schemes.add(index, scheme); } }
/** * Deletes the color scheme that has the specified display name. This * method is for internal use only and should not be used in custom * application skins. * * @param displayName * Display name of the color scheme to delete from the list. */ public void delete(String displayName) { int index = this.indexOf(displayName); if (index >= 0) { this.schemes.remove(index); } }
/** * Deletes the color scheme that has the specified display name. This * method is for internal use only and should not be used in custom * application skins. * * @param displayName * Display name of the color scheme to delete from the list. */ public void delete(String displayName) { int index = this.indexOf(displayName); if (index >= 0) { this.schemes.remove(index); } }