Updated FML to newest version
This commit is contained in:
@ -29,4 +29,21 @@ interface BackgroundColorable
|
||||
*/
|
||||
public function setBackgroundColor($backgroundColor);
|
||||
|
||||
/**
|
||||
* Get the focus background color
|
||||
*
|
||||
* @api
|
||||
* @return string
|
||||
*/
|
||||
public function getFocusBackgroundColor();
|
||||
|
||||
/**
|
||||
* Set the focus background color
|
||||
*
|
||||
* @api
|
||||
* @param string $focusBackgroundColor Focus background color
|
||||
* @return static
|
||||
*/
|
||||
public function setFocusBackgroundColor($focusBackgroundColor);
|
||||
|
||||
}
|
||||
|
@ -3,6 +3,7 @@
|
||||
namespace FML\Types;
|
||||
|
||||
use FML\Elements\Format;
|
||||
use FML\Stylesheet\Style;
|
||||
|
||||
/**
|
||||
* Interface for Element being able to contain other Controls
|
||||
@ -31,6 +32,17 @@ interface Container
|
||||
*/
|
||||
public function addChild(Renderable $child);
|
||||
|
||||
/**
|
||||
* Add a new child
|
||||
*
|
||||
* @api
|
||||
* @param Renderable $child Child Control to add
|
||||
* @return static
|
||||
* @deprecated Use addChild()
|
||||
* @see Container::addChild()
|
||||
*/
|
||||
public function add(Renderable $child);
|
||||
|
||||
/**
|
||||
* Add new children
|
||||
*
|
||||
@ -48,13 +60,26 @@ interface Container
|
||||
*/
|
||||
public function removeAllChildren();
|
||||
|
||||
/**
|
||||
* Remove all children
|
||||
*
|
||||
* @api
|
||||
* @return static
|
||||
* @deprecated Use removeAllChildren()
|
||||
* @see Container::removeAllChildren()
|
||||
*/
|
||||
public function removeChildren();
|
||||
|
||||
/**
|
||||
* Get the Format
|
||||
*
|
||||
* @api
|
||||
* @param bool $createIfEmpty If the format should be created if it doesn't exist yet
|
||||
* @return Format
|
||||
* @deprecated Use Style
|
||||
* @see Style
|
||||
*/
|
||||
public function getFormat();
|
||||
public function getFormat($createIfEmpty = true);
|
||||
|
||||
/**
|
||||
* Set the Format
|
||||
@ -62,6 +87,8 @@ interface Container
|
||||
* @api
|
||||
* @param Format $format New Format
|
||||
* @return static
|
||||
* @deprecated Use Style
|
||||
* @see Style
|
||||
*/
|
||||
public function setFormat(Format $format = null);
|
||||
|
||||
|
@ -18,8 +18,9 @@ interface NewLineable
|
||||
* Get auto new line
|
||||
*
|
||||
* @api
|
||||
* @deprecated
|
||||
* @return bool
|
||||
* @deprecated Use MultiLineable::getAutoNewLine()
|
||||
* @see MultiLineable::getAutoNewLine()
|
||||
*/
|
||||
public function getAutoNewLine();
|
||||
|
||||
@ -27,9 +28,10 @@ interface NewLineable
|
||||
* Set auto new line
|
||||
*
|
||||
* @api
|
||||
* @deprecated
|
||||
* @param bool $autoNewLine If the Element should insert new lines automatically
|
||||
* @return static
|
||||
* @deprecated Use MultiLineable::setAutoNewLine()
|
||||
* @see MultiLineable::setAutoNewLine()
|
||||
*/
|
||||
public function setAutoNewLine($autoNewLine);
|
||||
|
||||
|
Reference in New Issue
Block a user