eneko89/jCool — Issue #6: A utility to manage default properties and presets for component properties is needed
Author: eneko89
Created: 2012-01-06 02:08:51+00:00
State: open

It should be a manner to change the default values which components have on creation.

For example, a JCButton has a roundness value of 8 pixels arc diameter, which can be modified with setRoundness(). It should be possible to change this default value to make it be 20 for the components created from then on.

It would be interesting to create Preset classes for each component, which would contain the values for all the properties of the component (eg. background gradient, rollover gradient, border color, roundness...). It would be posible to apply those presets to the components, that would be a kind of skin for the component. Some of them could be shipped with jCool, and users would have the ability to create custom ones.

It should be possible to make a preset the default one for the component too, instead of only changing properties individually.