pub trait HTMLSelectElementMethods<D: DomTypes> {
Show 34 methods
// Required methods
fn Disabled(&self) -> bool;
fn SetDisabled(&self, cx: &mut JSContext, value: bool);
fn GetForm(&self) -> Option<DomRoot<D::HTMLFormElement>>;
fn Multiple(&self) -> bool;
fn SetMultiple(&self, cx: &mut JSContext, value: bool);
fn Name(&self) -> DOMString;
fn SetName(&self, cx: &mut JSContext, value: DOMString);
fn Required(&self) -> bool;
fn SetRequired(&self, cx: &mut JSContext, value: bool);
fn Size(&self) -> u32;
fn SetSize(&self, cx: &mut JSContext, value: u32);
fn Type(&self) -> DOMString;
fn Options(&self) -> DomRoot<D::HTMLOptionsCollection>;
fn Length(&self) -> u32;
fn SetLength(&self, cx: &mut JSContext, value: u32);
fn Item(&self, index: u32) -> Option<DomRoot<D::Element>>;
fn NamedItem(
&self,
name: DOMString,
) -> Option<DomRoot<D::HTMLOptionElement>>;
fn Add(
&self,
cx: &mut JSContext,
element: HTMLOptionElementOrHTMLOptGroupElement<D>,
before: Option<HTMLElementOrLong<D>>,
) -> Fallible<()>;
fn Remove(&self, cx: &mut JSContext);
fn Remove_(&self, cx: &mut JSContext, index: i32);
fn SelectedOptions(&self, cx: &mut JSContext) -> DomRoot<D::HTMLCollection>;
fn SelectedIndex(&self) -> i32;
fn SetSelectedIndex(&self, cx: &mut JSContext, value: i32);
fn Value(&self) -> DOMString;
fn SetValue(&self, cx: &mut JSContext, value: DOMString);
fn WillValidate(&self) -> bool;
fn Validity(&self, cx: &mut JSContext) -> DomRoot<D::ValidityState>;
fn ValidationMessage(&self, cx: &mut JSContext) -> DOMString;
fn CheckValidity(&self, cx: &mut JSContext) -> bool;
fn ReportValidity(&self, cx: &mut JSContext) -> bool;
fn SetCustomValidity(&self, cx: &mut JSContext, error: DOMString);
fn Labels(&self) -> DomRoot<D::NodeList>;
fn IndexedGetter(&self, index: u32) -> Option<DomRoot<D::Element>>;
fn IndexedSetter(
&self,
cx: &mut JSContext,
index: u32,
option: Option<&D::HTMLOptionElement>,
) -> Fallible<()>;
}Required Methods§
fn Disabled(&self) -> bool
fn SetDisabled(&self, cx: &mut JSContext, value: bool)
fn GetForm(&self) -> Option<DomRoot<D::HTMLFormElement>>
fn Multiple(&self) -> bool
fn SetMultiple(&self, cx: &mut JSContext, value: bool)
fn Name(&self) -> DOMString
fn SetName(&self, cx: &mut JSContext, value: DOMString)
fn Required(&self) -> bool
fn SetRequired(&self, cx: &mut JSContext, value: bool)
fn Size(&self) -> u32
fn SetSize(&self, cx: &mut JSContext, value: u32)
fn Type(&self) -> DOMString
fn Options(&self) -> DomRoot<D::HTMLOptionsCollection>
fn Length(&self) -> u32
fn SetLength(&self, cx: &mut JSContext, value: u32)
fn Item(&self, index: u32) -> Option<DomRoot<D::Element>>
fn NamedItem(&self, name: DOMString) -> Option<DomRoot<D::HTMLOptionElement>>
fn Add( &self, cx: &mut JSContext, element: HTMLOptionElementOrHTMLOptGroupElement<D>, before: Option<HTMLElementOrLong<D>>, ) -> Fallible<()>
fn Remove(&self, cx: &mut JSContext)
fn Remove_(&self, cx: &mut JSContext, index: i32)
fn SelectedOptions(&self, cx: &mut JSContext) -> DomRoot<D::HTMLCollection>
fn SelectedIndex(&self) -> i32
fn SetSelectedIndex(&self, cx: &mut JSContext, value: i32)
fn Value(&self) -> DOMString
fn SetValue(&self, cx: &mut JSContext, value: DOMString)
fn WillValidate(&self) -> bool
fn Validity(&self, cx: &mut JSContext) -> DomRoot<D::ValidityState>
fn ValidationMessage(&self, cx: &mut JSContext) -> DOMString
fn CheckValidity(&self, cx: &mut JSContext) -> bool
fn ReportValidity(&self, cx: &mut JSContext) -> bool
fn SetCustomValidity(&self, cx: &mut JSContext, error: DOMString)
fn Labels(&self) -> DomRoot<D::NodeList>
fn IndexedGetter(&self, index: u32) -> Option<DomRoot<D::Element>>
fn IndexedSetter( &self, cx: &mut JSContext, index: u32, option: Option<&D::HTMLOptionElement>, ) -> Fallible<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".