package Ġnet . d ank ito . richt ext editor . android . command Ċ Ċ import Ġnet . d ank ito . utils . image . Image Reference Ċ import Ġnet . d ank ito . richt ext editor . JavaScript Executor Base Ċ import Ġnet . d ank ito . richt ext editor . android . Rich Text Editor Ċ import Ġnet . d ank ito . richt ext editor . android . toolbar . Group ed Commands View Ċ import Ġnet . d ank ito . richt ext editor . command . CommandName Ċ import Ġnet . d ank ito . richt ext editor . command . Toolbar Command Ċ import Ġnet . d ank ito . richt ext editor . command . Toolbar Command Style Ċ import Ġnet . d ank ito . utils . android . ui . view . I Handles Back Button Press ĊĊ Ċ abstract Ġclass ĠToggle Group ed Commands View Command ( command : ĠCommand Name , Ġicon : ĠImage Reference , Ġstyle : ĠToolbar Command Style Ġ= ĠToolbar Command Style (), Ġcommand Executed Listener : Ġ(() Ġ-> ĠUnit )? Ġ= Ġnull ) ĊĠĠĠ Ġ: ĠToolbar Command ( command , Ġicon , Ġstyle , Ġcommand Executed Listener ), ĠICommand Re qu iring Editor , ĠI Handles Back Button Press Ġ{ ĊĊĠĠĠ Ġoverride Ġvar Ġeditor : ĠRich Text Editor ? Ġ= Ġnull ĊĊĠĠĠ Ġprivate Ġvar Ġgrouped Commands View : ĠGroup ed Commands View ? Ġ= Ġnull ĊĊĊĠĠĠ Ġprotected Ġabstract Ġfun Ġcreate Group ed Commands View ( editor : ĠRich Text Editor ): ĠGroup ed Commands View ĊĊĊĠĠĠ Ġoverride Ġfun Ġexecute Command ( executor : ĠJavaScript Executor Base ) Ġ{ ĊĠĠĠĠĠĠĠ Ġget Group ed Commands View ()?. toggle Show View () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġopen Ġfun Ġapply Style To Group ed Commands ( style : ĠToolbar Command Style ) Ġ{ ĊĠĠĠĠĠĠĠ Ġget Group ed Commands View ()?. apply Style To Group ed Commands ( style ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġopen Ġfun Ġget Group ed Commands View (): ĠGroup ed Commands View ? Ġ{ ĊĠĠĠĠĠĠĠ Ġgrouped Commands View ?. let Ġ{ Ġreturn Ġit Ġ} ĊĊĠĠĠĠĠĠĠ Ġeditor ?. let Ġ{ Ġeditor Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġview Ġ= Ġcreate Group ed Commands View ( editor ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġview . initialize ( editor , Ġthis ) ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġthis . grouped Commands View Ġ= Ġview ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn Ġview ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġreturn Ġnull ĊĠĠĠ Ġ} ĊĊĊĠĠĠ Ġoverride Ġfun Ġhandles Back Button Press (): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġget Group ed Commands View ()?. let Ġ{ Ġgrouped Commands View Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn Ġgrouped Commands View . handles Back Button Press () ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġreturn Ġfalse ĊĠĠĠ Ġ} Ċ Ċ }